Simulate key pressed (arrow key)

Roger Eller roger.e.eller at
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.


On Wed, Aug 15, 2012 at 12:49 AM, Magicgate Software - Skip Kimpel <
skip at> wrote:

> How do I simulate a key pressed... in particular, an arrow key?
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

More information about the use-livecode mailing list