Guest User

Untitled

a guest
Jan 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #NoEnv
  2. #SingleInstance Force
  3. Process, Priority, , High
  4. SetWinDelay 0
  5.  
  6. ; Replace "ThisClass" with the ahk_class of your PDF Viewer
  7. GroupAdd, PDF_Group, ahk_class ThisClass
  8.  
  9. return ; end of auto-execute section
  10.  
  11. #IfWinActive, ahk_group PDF_Group
  12.  
  13. PgDn::
  14. ; If the target window does not receive the keystrokes reliably,
  15. ; try increasing the press duration via the second parameter of SetKeyDelay
  16. ; as in these examples:
  17. ; SetKeyDelay, 10, 10
  18. ; SetKeyDelay, 0, 10
  19. ; SetKeyDelay, -1, 0
  20. Send {PgDn}
  21. GroupActivate PDF_Group ; activate the next window of this group
  22. Send {PgDn}
  23. return
  24.  
  25. #IfWinActive
  26.  
  27.  
  28. Esc:: ExitApp
Add Comment
Please, Sign In to add comment