aboutsummaryrefslogtreecommitdiff
path: root/tt.scroll.ahk
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-10-23 01:44:02 +0200
committerJohn Ankarström <john@ankarstrom.se>2020-10-23 01:44:02 +0200
commit1f460f7ebc10c2f8bb66ae684498f49187eab9bc (patch)
tree776f7a92b0d24e27cd682e4ff76bde477a02ff98 /tt.scroll.ahk
downloadahk-1f460f7ebc10c2f8bb66ae684498f49187eab9bc.tar.gz
first commit
Diffstat (limited to 'tt.scroll.ahk')
-rw-r--r--tt.scroll.ahk46
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}