[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 03:41 PM.
|