1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
;; -> body
;; TODO: Check how far up/down window cursor is
;; (but let perhaps the top 30-40% give the same scroll)
;§ & LButton::SendInput, {WheelDown}
;§ & RButton::SendInput, {WheelUp}
; <^>!§::SendInput, {Text}§
#IfWinActive ahk_class PuTTY
PgUp::
Loop, 5
SendInput, ^{PgUp}
return
PgDn::
Loop, 5
SendInput, ^{PgDn}
return
#IfWinActive ahk_class SUMATRA_PDF_FRAME
PgUp::SendInput, {PgUp}
PgDn::SendInput, {PgDn}
#IfWinActive ahk_class Chrome_WidgetWin_1
PgUp::SendInput, {PgUp}
PgDn::SendInput, {PgDn}
#IfWinActive
PgUp::
Loop, 5
SendInput, {WheelUp}
return
PgDn::
Loop, 5
SendInput, {WheelDown}
return
<^>!PgUp::SendInput, {PgUp}
<^>!PgDn::SendInput, {PgDn}
|