Hello Helen,

Possibly you could set a flag when the user has pressed the button and
launched the exe. When the user presses the button check if the flag has
been set to true (the button has been pressed), if so don't let the user
launch the app again.

on mousedown
    if myFlag = false
        open "path/app"
    else 
        myFlag = true
        alert "the app is already open"
    end if
end

the syntax is slightly iffy but i've been away from director and in
javascript (yech) for too long.

Hope the idea helps

cornelius
www.visualfood.ch


> Von: Anders Molsner <[EMAIL PROTECTED]>
> Antworten an: [EMAIL PROTECTED]
> Datum: Thu, 07 Sep 2000 11:00:58 +0200
> An: <[EMAIL PROTECTED]>
> Betreff: Re: <lingo-l> external app
> 
> on 1/9/06 11:54 pm, hel at [EMAIL PROTECTED] wrote:
> 
>> I have a small external app. which is called from a button in the main move.
>> This then appears in the middle of the stage. The problem is that when the
>> user clicks on the part of the stage that is surrounding the external
>> application, the exe disappears, but is still running in the background. By
>> pressing the OPEN button, the user could keep opening up copies of the exe
>> without realising it, and this may cause a crash. I need to make the stage
>> inactive while the exe is running, so that the user has to close the exe
>> before carrying on. Can anybody tell me how to make the stage inactive?
>> 
>> Helen.
>> 
>> 
>> 
>> 
>> [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!]
>> 
> 
> 
> 
> [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!]
> 


[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