Ask a Question related to Macromedia Director Lingo, Design and Development.
-
LAGRO #1
How can I avoid the mouse click during a short period of time???
Hello to all!!!
I have a projector movie that opens another projector movie when a specific
button is clicked.
It works fine , but, if the user double ckick the button a message window
appears informing the error.
How can I avoid the mouse click after the first click, during 4 or 5
secounds, that is the time left to open the other projector and then, set it
to run again after that time?
Is possible to verify the windowPresent for projector.exe as it is possiblo
to MIAW???
Thanks a lot!!!
LAGRO Guest
-
How do you avoid double-click
When running flash on a web page you usually have to click the Flash object once and then once again to click a button. Is there a way to avoid... -
Allowing opening pdf for a period of time
Is there a way to create a pdf so that when provided to users, there is a time limit on opening it??? In other words, I have material that is... -
Changing a sprite member for a period of time
Dear Forum I have developed a childs numeracy and spelling game. I have managed to build the back-end of the system i.e the creation of random... -
Move mouse cursor to X,Y location and simulate mouse click
Hi, Just something that slip my mind.. but how do you move the mouse cursor to a sprite member and simulate a mouse click? Any help is... -
Loop for a period of time.
Hello everyone. I am making a auto play slide show of about 50 images. How can i make director loop on a image for say 10 seconds before moving... -
Word of Mouth Productions #2
Re: How can I avoid the mouse click during a short period of time???
You can't "avoid" a mouseClick because that's up to the user but if you want
to avoid executing code that's in the mouseDown or mouseUp handlers then you
can do this
property pS, spriteNum, pTimer
on beginSprite me
pS = sprite (spriteNum)
pDelay = 5 * 60 -- 5 is the number of seconds to protect from other
mouseUp's getting through
pTimer = the ticks - pDelay
end
on mouseUp me
if the ticks > pTimer + pDelay then
-- exectute the code to launch the projector or whatever other code
is neccessary.
pTimer = the ticks
end if
end
Using the above code the mouseUp event won't execute the code more than once
every 5 seconds if the button is clicked continuously. But of course you
run into all sorts of system operations when a file is launching so those
can't be controlled confidently but can be monitored in some cases with
buddyAPI or MasterApp. If you understand the system (Windows) then you can
see when a window becomes available and also check to see when an app is
launched, etc.
--
Craig Wollman
Word of Mouth Productions
phone 212 724 8302
fax 212 724 8151
[url]www.wordofmouthpros.com[/url]
"LAGRO" <edd@click21.com.br> wrote in message
news:blsif6$dn9$1@forums.macromedia.com...specific> Hello to all!!!
>
> I have a projector movie that opens another projector movie when ait> button is clicked.
>
> It works fine , but, if the user double ckick the button a message window
> appears informing the error.
>
> How can I avoid the mouse click after the first click, during 4 or 5
> secounds, that is the time left to open the other projector and then, setpossiblo> to run again after that time?
>
> Is possible to verify the windowPresent for projector.exe as it is> to MIAW???
>
>
> Thanks a lot!!!
>
>
Word of Mouth Productions Guest



Reply With Quote

