12-15-2012, 01:14 PM | #1 |
Member
Posts: 22
Karma: 53884
Join Date: Dec 2012
Location: Lyon
Device: Kobo H2O
|
Intercept and stop keys
Hello. I'm searching for a way to stop events triggered by buttons on my kindle 4NT.
I want a way to execute a script until any button is pressed, and to go on the homepage then. Currently, I use waitforkey, but the buttons trigger the menu, the virtual keyboard and other things, I want to avoid that. Code:
waitforkey; # Resume the interface killall -CONT cvm; # Go Home echo "send 101" > /proc/keypad |
12-15-2012, 02:26 PM | #2 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
killall -stop cvm
killall -cont cvm ? Don't have a 4 mate. |
Advert | |
|
12-15-2012, 05:41 PM | #3 |
Member
Posts: 22
Karma: 53884
Join Date: Dec 2012
Location: Lyon
Device: Kobo H2O
|
I don't understand what do you means by «*Don't have a 4 mate*».
|
12-15-2012, 05:49 PM | #4 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
12-15-2012, 06:26 PM | #5 |
Member
Posts: 22
Karma: 53884
Join Date: Dec 2012
Location: Lyon
Device: Kobo H2O
|
Well, I use first "killall -stop cvm" to avoid the kindle to come back at the homepage when I launch my programm which show an image using eips, then when I*want to go back to homepage I launch "killall -cont cvm" to resume cvm.
Note: cvm == C virtual machine which is a java virtual machine used by the kindle |
Advert | |
|
12-15-2012, 09:16 PM | #6 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
hi. yes. cvm. little version of big virtual machine.
so you have your answer then? -stop and -cont were what you wanted? Thanks. I'm not really sure if you are actually happy : ) |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
F and J keys | mr ploppy | Amazon Kindle | 4 | 03-03-2011 07:06 AM |
Troubleshooting Keys are not responding | amitauti | Amazon Kindle | 4 | 11-15-2010 11:42 AM |
SSH keys with dropbear? | enn | Kindle Developer's Corner | 2 | 10-07-2010 12:54 AM |
what is wrong with these keys | KingDani | iRex | 8 | 05-06-2009 11:42 PM |
Use keys in Mobipocket | ddavtian | iRex | 0 | 10-14-2007 04:03 PM |