diff options
Diffstat (limited to 'tt.scroll.ahk')
-rw-r--r-- | tt.scroll.ahk | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tt.scroll.ahk b/tt.scroll.ahk new file mode 100644 index 0000000..44e1a26 --- /dev/null +++ b/tt.scroll.ahk @@ -0,0 +1,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} |