;; -> 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}