Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- #SingleInstance Force
- Process, Priority, , High
- SetWinDelay 0
- ; Replace "ThisClass" with the ahk_class of your PDF Viewer
- GroupAdd, PDF_Group, ahk_class ThisClass
- return ; end of auto-execute section
- #IfWinActive, ahk_group PDF_Group
- PgDn::
- ; If the target window does not receive the keystrokes reliably,
- ; try increasing the press duration via the second parameter of SetKeyDelay
- ; as in these examples:
- ; SetKeyDelay, 10, 10
- ; SetKeyDelay, 0, 10
- ; SetKeyDelay, -1, 0
- Send {PgDn}
- GroupActivate PDF_Group ; activate the next window of this group
- Send {PgDn}
- return
- #IfWinActive
- Esc:: ExitApp
Add Comment
Please, Sign In to add comment