Exactly! I posted a reply to Terry saying that I got inconsistent results.
I often had to click 6 or 7 times to get the button to respond and there
were other problems too.
I just haven't had time (daughter got married this weekend and lots of
family here) to implement your latest idea, Jacqueline. But I will and let
you know how it turned out.
----- Original Message -----
From: "J. Landman Gay" <[EMAIL PROTECTED]>
To: "How to use Revolution" <[email protected]>
Sent: Monday, October 27, 2008 9:52 AM
Subject: Re: simulate keystroke
Terry Judd wrote:
Hi Larry - it might not be the ideal way to do it but it seems to work
quite
reliably here. All I have are two buttons on a stack with an empty button
named 'cancel' that has its autohilite set to false and a button named
'run'
that has the following script - slightly modified from the previous
version
so that you get some feedback in the message box.
ON mouseUp
REPEAT forever
wait 0 milliseconds
put the milliseconds
IF within(btn "cancel",the mouseLoc) THEN
put "cancel"&& the milliseconds
IF the mouse is down THEN
set the hilited of btn "cancel" to true
wait until the mouse is up
set the hilited of btn "cancel" to false
exit repeat
END IF
END IF
END repeat
END mouseUp
The results of this can be inconsistent. The engine only checks the mouse
state at the exact moment the line of script is running, which is usually
just a fraction of a millisecond; that is, if the user clicks the mouse
quickly and the "mouse is down" check isn't the line that is running at
that precise instant, the mouse state will not be evaluated. A quick mouse
press will often be missed.
This type of repeat loop is a good candidate for the technique on the web
page I mentioned.
--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution