View Single Post
Old 03-22-2013, 07:52 AM   #12
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
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
[root@kindle root]# waitforkey
104 1 (Left Page Forward)
191 1 (Right Page forward)
193 1 (Left Page Back)
109 1 (Right Page Back)

I think I will try to make it so the RIGHT HAND SIDE auto scroll 5% left.
Need to figure out what to monitor to do that...

EDIT: I came up with this... I'll wrap it in a toggle...

while :; do SCROLL=0; usleep 10000; OUTY=$(waitforkey | awk '{print substr($0,0,3)}'); if [ "$OUTY" == "191" ] ; then SCROLL=1; fi ;if [ "$OUTY" == "109" ] ; then SCROLL=1; fi ; if [ "$SCROLL" == "1" ] ; then usleep 50000; echo $SCROLL ; fi ; done

Last edited by twobob; 03-22-2013 at 04:41 PM.
twobob is offline   Reply With Quote