> >I want to use the events activatewindow and deactivatewindow
> to run some
> >sciprt when I switch between the movie projector and other windows
> >applications.  But I found that these two handlers are never
> executed! Can
> >anybody help me on that? Thanks very much.

Hi Drizzt,

I believe that you are going to need an Xtra with hooks into the operating
system to do what you desire. One such Xtra is MasterApp, published by
UpdateStage and written by Glen Picher. You will need to check to see what
window is the active window and, if it is not your Director projector,
execute your code. If you wish to do something in particular when your
program becomes active again then you will need to monitor the active window
all the time, even while it is in the background. Of course yourprojector
would need to be set to "Animate In The Background" bor this to take place.

Here is an example from the MasterApp documentation that shows how you can
check which window is currently active:

-------------

mappGetActiveWindow ()
Returns: integer window ID
Returns windowID of the frontmost window (0 if no windows are visible or
active). Note: this only applies to windows owned by the Director/Authorware
task. Usually returns the same window as mappDirectorStageWindow in
projectors, but could also return authoring-time windows, MIAWs, or Xtra- or
XObject-owned windows.

 Example:

 set winID = mappGetActiveWindow()
 if mappWindowType(winID) = "Tool" then
    mappCloseWindow(winID)
 end if


-------------

Price: $299.00
Platforms: 32-bit Windows, Win 3.1, Mac
Director versions supported: Director 4,5,6,7,8
Author: Glenn Picher

MasterApp gives you broad control over other applications from your Director
presentation. The most common application for MasterApp is building
connectivity between your Director piece and various Web browsers and Web
pages. However, MasterApp is much more powerful than this basic use,
including dozens of methods for launching, monitoring and controlling
external applications.

For more information, the complete documentation for the Xtra, and a
downloadable demonstration version please visit the UpdateStage web site at
http://www.updatestage.com/xtras/xtrahome.html.

HTH,

Al Hospers
Marketing Associate
UpdateStage
alhospers<at>updatestage<dot>com
http://www.updatestage.com



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to