-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathextended_scrolling.ahk
51 lines (45 loc) · 1.68 KB
/
extended_scrolling.ahk
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
47
48
49
50
51
;#################################################################
;##### CfK -- extended scrolling - mostly horizontal
;# = Super, ^ = Ctrl, ! = Alt, + = Shift, ^>! = AltGr
; PowerPoint horizontal scolling
#IfWinActive ahk_class PPTFrameClass
+WheelDown:: ; RIGHT
ScrollStep := 5.0
com_object := ComObjActive("PowerPoint.Application")
com_object.ActiveWindow.SmallScroll(0,0,ScrollStep,0)
return
+WheelUp:: ; LEFT
ScrollStep := 5.0
com_object := ComObjActive("PowerPoint.Application")
com_object.ActiveWindow.SmallScroll(0,0,0,ScrollStep)
return
#IfWinActive
; Excel horizontal scolling
#IfWinActive ahk_class XLMAIN
+WheelDown:: ; RIGHT
ScrollStep := 3.0
com_object := ComObjActive("Excel.Application")
com_object.ActiveWindow.SmallScroll(0,0,ScrollStep,0)
return
+WheelUp:: ; LEFT
ScrollStep := 3.0
com_object := ComObjActive("Excel.Application")
com_object.ActiveWindow.SmallScroll(0,0,0,ScrollStep)
return
#IfWinActive
; Outlook calendar horizontal scolling
#IfWinActive ahk_class rctrl_renwnd32
; WinGetClass, sClass, ahk_id %hWin%
MouseGetPos,,,, sClassNN
if (sClassNN == "DayViewWnd1") ; Outlook Calender Viewport
{
+WheelDown:: ; RIGHT
; Controlsend, , {Shift UP}{Ctrl DOWN}{Right}{Ctrl UP}, ahk_id %hWin%
SendInput, {Ctrl DOWN}{Right}{Ctrl UP}
return
+WheelUp:: ; LEFT
; Controlsend, , {Shift UP}{Ctrl DOWN}{Left}{Ctrl UP}, ahk_id %hWin%
SendInput, {Ctrl DOWN}{Left}{Ctrl UP}
return
}
#IfWinActive