Hi List
How can I test if the projector is already running to prevent users from opening my program if it is already open? I need to prevent multiple occurrences running simultaneously?
budApi has functions to test this (by comparing window titles).
An alternative (and somewhat easier) way would be to include an .ini file with your projector modeled from the director.ini which you find in the folder with your director (.exe).
The relevant bit is:
[Settings] ;SingleInstance=1 ; This property only functions in Windows Director and Projectors. ; 1: If the application is already running, attempts to launch a second ; copy will bring the existing copy to the front of your desktop, without ; launching a new copy. ; 0: Default behavior. Multiple copies of the application can run concurrently. ;
ok, it is a byte, actually.
At the beginning of said file the use is explained like this:
; For use with projectors, you must name your .INI file "<ProjectorName>.INI" ; rather than "DIRECTOR.INI" and place the file in the same directory as ; your projector executable.
best regards
daniel plaenitz
[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!]
