simulate keystroke

Terry Judd tsj at unimelb.edu.au
Sun Oct 26 20:56:30 EDT 2008


Hi Larry - something like this?

REPEAT forever
    IF within(btn "cancel",the mouseLoc) THEN
      IF the mouse is down THEN
        set the hilited of btn "cancel" to true
        wait until the mouse is up
        exit repeat
      END IF
    END IF 
END repeat

Terry...


On 27/10/08 10:37 AM, "Larry Watts" <lgwatts at adelphia.net> wrote:

> hi Mark,
> What I'm really wondering how to do is this:
> I have a button script running with a lot of repeat statements in it.
> Depending upon the input, the script will run for 5 minutes to an hour.  I
> want the user to be able to interrupt the script by clicking on another
> button on the card.  But as I understand it, Rev cannot do that because the
> first button has the focus until the entire script is finished running. Is
> there a way to work around this limitation of Rev?
> thanks, Larry
> 
> ----- Original Message -----
> From: "Mark Schonewille" <m.schonewille at economy-x-talk.com>
> To: "How to use Revolution" <use-revolution at lists.runrev.com>
> Sent: Sunday, October 26, 2008 2:44 PM
> Subject: Re: simulate keystroke
> 
> 
>> Larry,
>> 
>> Do you have more info?
>> 
>> --
>> Best regards,
>> 
>> Mark Schonewille
>> 
>> Economy-x-Talk Consulting and Software Engineering
>> http://economy-x-talk.com
>> http://www.salery.biz
>> Dutch forum: http://runrev.info/rrforum/
>> 
>> Benefit from our inexpensive hosting services. See
>> http://economy-x-talk.com/server.html for more info.
>> 
>> On 26 okt 2008, at 21:00, Larry Watts wrote:
>> 
>>> hi,
>>> hopefully a simple question:
>>> how do I programatically tell Rev to hold the shift key down for x
>>> amount of time?
>> 
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

-- 
Dr Terry Judd
Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
Parkville VIC 3052
AUSTRALIA

61-3 8344 0187




More information about the Use-livecode mailing list