-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAutoHotkey.ahk
71 lines (58 loc) · 1.47 KB
/
AutoHotkey.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
;#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
;SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
;SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;C+Space window on top
^SPACE:: Winset, Alwaysontop, , A
;C+Esc window transparent
^+Space::
WinGet, TransLevel, Transparent, A
If (TransLevel = OFF) {
WinSet, Transparent, 180, A
} Else {
WinSet, Transparent, OFF, A
}
^Capslock::
If GetKeyState("CapsLock","T") {
SetCapsLockState Off
} Else {
SetCapsLockState On
}
;Capslock escape or control
*Capslock::
Send {Blind}{LControl down}
return
*Capslock up::
Send {Blind}{LControl up}
; Tooltip, %A_PRIORKEY%
; SetTimer, RemoveTooltip, 1000
if A_PRIORKEY = CapsLock
{
Send {Esc}
}
return
RemoveTooltip(){
SetTimer, RemoveTooltip, Off
Tooltip
return
}
ToggleCaps(){
; this is needed because by default, AHK turns CapsLock off before doing Send
SetStoreCapsLockMode, Off
Send {CapsLock}
SetStoreCapsLockMode, On
return
}
LShift & RShift::ToggleCaps()
RShift & LShift::ToggleCaps()
; ^!r::Reload
;loop
;{
; loop,500
; {
; Sleep, 770 ; ms
; ControlClick,,Minecraft 1.12.2,,R,,NA,,
; }
;;;;;; ControlClick,,Minecraft 1.12.2,,WU,,NA,,
;}
;!x::ExitApp