View Single Post
Old 04-24-2013, 04:07 PM   #2
Togg
Junior Member
Togg began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2013
Device: Sony PRS-t1
Well I guess I'll get back to my badly named thread that I coudln't rename with an edit.

Both powershell and vbscript didn't want to cooperate too well (both requiring the window to be active to send a keystroke to it, causing inconvenient alt tabbing like effects when switching to the ebook viewer, and then refusing to switch back to the fullscreen program). But turned out autohotkey was the right tool for the job.

Got this in the script file:

^!u::
ControlSend ,,{PGDN},E-book Viewer
return

^!i::
ControlSend ,,{PGUP},E-book Viewer
return

I suppose they could be turned into one liners, but anyway it works and then the keyboard macro buttons are assigned to ctrl + alt + u/i
Togg is offline   Reply With Quote