Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by Ashkan_gc · Dec 26, 2009 at 02:08 PM · webplayerwindows-formactivex

how can i send a command from unity's activex control to my windows form application?

i want to embed unity's activex control to my windows form o WPF application or embed it in a powerpoint slideshow. i can use the activex control's sendmessage method to send commands from the application to my unity content but i want to send commands from unity to my container application. if it was an HTML page i could use javascript but i don't know what should i do now. is there any way to send a message to COM objects or any other way to send a message to my container?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by jashan · Dec 28, 2009 at 08:57 AM

As the Unity ActiveX-control, while "technically supported" is not really documented (or "really supported" ;-) ), my guess would be that the only real option for communication between the container and the Web player would be via a network connection and your own proprietary communications protocol.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ashkan_gc · Dec 28, 2009 at 02:36 PM 0
Share

maybe it's the only way but i'll wait for other answers. thank you jashan. i typed your name incorrectly in many places sorry

avatar image jashan · Dec 29, 2009 at 12:31 AM 0
Share

Never $$anonymous$$d. Now go edit and correct all of them. Immediately ;-)

avatar image DaveA · Nov 30, 2010 at 07:06 PM 0
Share

Using 3.1 and PPT 2003, how does one embed the player (let alone talk to it)?

avatar image
0

Answer by dendrophile · Dec 28, 2009 at 06:42 PM

I think I'd try calling the Application.ExternalCall script API and use a debugger to see if anything ends up happening on the COM side. My guess is that something will happen (I just don't have a PC in front of me to try.)

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ashkan_gc · Dec 29, 2009 at 08:03 AM 0
Share

the ExternalCall don't do what i want. it's a special function to call js functions

avatar image dendrophile · Jan 02, 2010 at 10:25 AM 0
Share

I know it is documented as calling js functions. The html page is normally a container for our activeX control, so I figured that the ExternalCall must cause something to happen outside of the control. I just wondered if your container got any messages from our control to say an external call was being made. (I assume that the html page must intercept the call and pass it on to Javascript.) If you have tried this and it does not work, then that's call, it was just a suggestion. :-)

avatar image
0

Answer by DaveA · Dec 03, 2010 at 01:03 AM

Get LiveWeb http://skp.mvps.org/liveweb.htm

To get info out of Unity into Powerpoint: 1. In unity, use Application.ExternalCall (see docs for how) 2. In your html wrapper, implement a function for the above. You might have it set the status bar text or change the page title to the value you passed above. 3. In PPT, View Code on the LiveWeb control, and choose StatusTextChange (or TitleChange) from the dropdown. The value of 'Text' will be that of the status bar (or page title). Note that it will be a LOT of different things from the control itself, but it also picks up the text you set. So look for that.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

SendMessage() with ActiveX only works once? 1 Answer

Unity and C++ MFC application 2 Answers

Webplayer ActiveX 3 Answers

using ActiveX in WebPlayer 1 Answer

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges