View Single Post
Old 03-27-2012, 08:38 AM   #4
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
The kindles have a "waitforkey" command. It returns the same keycodes used by the launchpad app (and can be used to find keycodes to use in it).

On the kindle DX/K3/K4 it returns keycodes for the buttons on the sides too, in addition to the "keyboard" keys. On the Touch it also returns keycodes for touchscreen and accelerometer (rotation) events (so picking up your kindle touch can cause a script to continue when sitting at a "Press any key to continue . . ." prompt.

You can use "waitforkey" in script files. For testing a lot of keys, I like to do this from SSH:

while :;do waitforkey;done

Last edited by geekmaster; 03-27-2012 at 10:10 PM.
geekmaster is offline   Reply With Quote