This link is a thread on simulating keypresses:
http://www.mobileread.com/forums/sho...d.php?t=118480
and calls out an old line of code that reportedly simulates a keypress:
"old," because it corresponds to an older model than the PW3--on the PW3 there doesn't appear to be a /proc/keypad device directory. I think I'm saying that correctly.
The same thread lists a web page URL for device names and keycodes from two .ini files from their related projects:
http://info.iet.unipi.it/~luigi/kindle
First, I have to figure out what to send.
I have run some tests on the PW3 to check for scancode values being generated through
/dev/input/event0
on a multi-page PDF using evtest, but its output wasn't providing any clues to 1) what codes needed to be sent to forward paging through a displayed PDF file, 2) what codes were needed for backward paging, nor 3) to what device or character stream they needed to be directed.
Ultimately, I'd like to get enough of the puzzle pieces to create a UNIX script, programmed to run self-contained on the Kindle, making a displayed PDF document go forward x pages, then backward x pages, then repeating until I hit the home button.
I will have an SSH connection to set things up, get it running, then disconnect and let it run.
Can anyone help provide the pieces I need? Thanks.
http://www.mobileread.com/forums/sho...d.php?t=118480
and calls out an old line of code that reportedly simulates a keypress:
Code:
echo "send 104" > /proc/keypad
The same thread lists a web page URL for device names and keycodes from two .ini files from their related projects:
http://info.iet.unipi.it/~luigi/kindle
First, I have to figure out what to send.
I have run some tests on the PW3 to check for scancode values being generated through
/dev/input/event0
on a multi-page PDF using evtest, but its output wasn't providing any clues to 1) what codes needed to be sent to forward paging through a displayed PDF file, 2) what codes were needed for backward paging, nor 3) to what device or character stream they needed to be directed.
Ultimately, I'd like to get enough of the puzzle pieces to create a UNIX script, programmed to run self-contained on the Kindle, making a displayed PDF document go forward x pages, then backward x pages, then repeating until I hit the home button.
I will have an SSH connection to set things up, get it running, then disconnect and let it run.
Can anyone help provide the pieces I need? Thanks.