-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAutoHotKey-M.ahk
55 lines (46 loc) · 1.33 KB
/
AutoHotKey-M.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
52
53
54
55
;AHK hot key settings for example. ; ctrl=^, alt=!, shift=+, win=#, for example "ctrl + alt + v" definition(::) will start with "^!v::"
SetTitleMatchMode, 2 ; SetTitleMatchMode arg meaning 1:start, 2:inside, 3:exact
#s::
;This code will show AHK itself's menu. Important cuz the script will be paused by this key, and we can "reload" to reset AHK.
Menu, Tray, Show
;Menu, Tray, Click, 4 ;Click 4th menu (maybe "reload")
Return
#c::
;To disable win10 "cotana" hotkey and replace with "mouse click" on current position.
Click
Return
{F1}::
;To disable anoying help keys as F1 everywhere.
TrayTip, F1Disabler, "You pressed F1 in vain."
MButton::
;Mouse middle button (wheel press) will be remapped as {Enter} key.
Send, {enter}
Return
#1::
;Replace WIN key number combo.
MsgBox, Hello
Return
#2::
;Replace WIN key number combo.
SetTitleMatchMode, 2
WinActivate, ahk_exe Explorer.EXE
Send, {lwin}
Return
#3::
;Replace WIN key number combo.
CoordMode, Mouse, Client
mouspeed1 = 10 ;fast
mouspeed2 = 30 ;slow
WinActivate, Chrome
BlockInput, MouseMove
MouseClick, left, 80, 280, 1, mouspeed1 ;click
Sleep, 1000
MouseClickDrag, left, 100, 200, 500, 600, mouspeed1 ;drag
BlockInput, MouseMoveOff
Return
#4::
;Replace WIN key number combo.
Return
#5::
;Replace WIN key number combo.
Return