Simulate key pressed (arrow key)
Roger Eller
roger.e.eller at sealedair.com
Wed Aug 15 08:06:49 EDT 2012
You need a rawKeyDown handler to determine what keycodes are sent by the
arrow keys. I put this in the card script, then pressed the up arrow.
on rawKeyDown theKeyNumber
put theKeyNumber
pass rawKeyDown
end rawKeyDown
It returned 65362. Then I made a button containing:
on mouseUp
rawKeyDown 65362
end mouseUp
You will need to handle what happens in the rawKeyDown script if
theKeyNumber is 65362, etc.
~Roger
On Wed, Aug 15, 2012 at 12:49 AM, Magicgate Software - Skip Kimpel <
skip at magicgate.com> wrote:
> How do I simulate a key pressed... in particular, an arrow key?
>
> SKIP
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list