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 < s...@magicgate.com> wrote: > How do I simulate a key pressed... in particular, an arrow key? > > SKIP > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode