From 1f460f7ebc10c2f8bb66ae684498f49187eab9bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 23 Oct 2020 01:44:02 +0200 Subject: first commit --- tt.scroll.ahk | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tt.scroll.ahk (limited to 'tt.scroll.ahk') 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} -- cgit v1.2.3