-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariousFeatures.ahk
More file actions
64 lines (53 loc) · 1.39 KB
/
variousFeatures.ahk
File metadata and controls
64 lines (53 loc) · 1.39 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
IsUnderTaskBar() {
MouseGetPos, xpos, ypos, , ControlUnderMouse
return ControlUnderMouse = "MSTaskSwWClass1"
|| ControlUnderMouse = "ApplicationManager_DesktopShellWindow"
|| ControlUnderMouse = "Shell_TrayWnd1"
|| ControlUnderMouse = "MSTaskListWClass1"
}
#If IsUnderTaskBar()
MButton::
ShowTempToolTip("MMB under taskbar") ;
return
#If
!#c::
CloseAllRubbish(){ ;close Sublime modal windows
WinClose, Update ;Update == Sublime pid, class exe
WinClose, This is an unregistered copy
return
}
#If WinActive("ahk_class CabinetWClass") ;explorer
|| WinActive("ahk_class Progman") ; desktop https://www.autohotkey.com/boards/viewtopic.php?t=64885
|| WinActive("ahk_exe explorer.exe") ;explorer or desktop
|| WinActive("ahk_exe Q-Dir.exe") ;
|| WinActive("ahk_exe FreeCommander.exe") ;
|| WinActive("ahk_exe PotPlayerMini64.exe") ; ahk_class PotPlayer64
^Backspace::
Send ^+{Left}{Backspace} ;https://superuser.com/questions/33142/ctrlbackspace-inserts-a-small-box-instead-of-erasing
return ;
#If
#+a::
LeftMoveWindowOnMonitors(){
Send, #+{Left}
return
}
#+d::
RightMoveWindowOnMonitors(){
Send, #+{Right}
return
}
!t::
Change2AdjCharsAroundCaret(){ ; tp|yo -> typo
SendInput, {Shift down}
Sleep, 3
SendInput, {Left}
Sleep, 3
SendInput, {Shift up}
Sleep, 3
SendInput, ^x ;
Sleep, 3
SendInput, {Right}
Sleep, 3
SendInput, ^v
return
}