I just discovered baPrevious(Activate) in BuddyAPI, but this seems to
work only sometimes.  Maybe others have seen this:

In the projector I have:

on startMovie
 thePrevious = baPrevious(TRUE)
 -- returns winHandle if previous instance of projector is there
 -- otherwise returns 0
 if thePrevious <> 0 then quit
 -- previous instance was there, so quit this movie
 -- bring previous instance to front
end startMovie


In Windows, if I put the autorun CD in the drive, projector #1 launches.
If I double click My Computer and double click the icon for the D:
drive, projector #2 launches, but then closes at the next line of code
in the startMovie handler.  Here's the curve ball: If projector #1 is
still running, and I double click My Computer and select folders view,
then go into the D: drive folders and double click the .exe projector
file directly, baPrevious seems to fail.  It launches another instance
of the projector, but doesn't close it.

Anyone got any thoughts?
- Michael M.

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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