-
Notifications
You must be signed in to change notification settings - Fork 1
/
frost.ahk
70 lines (48 loc) · 987 Bytes
/
frost.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
#NoEnv
#Warn
SendMode Input
SetWorkingDir %A_ScriptDir%
/*
Keybinds:
Go to https://autohotkey.com/docs/KeyList.htm to find the list of controls
Modifiers are listed here : https://autohotkey.com/docs/Hotkeys.htm#Symbols
LCtrl is the default slide key, change it if you need to.
*/
crouchKey := "LAlt"
mKey:="2"
toggleKey := "6"
/*
Macro options:
*/
tempo := 125
duration := 155.0
toggleMetronome := false
crequ := 6
; Internal variables
metroActive := false
ccounter := 0
abDur := 3500
bfDur := 140.0*duration
; Setup
Hotkey, *%toggleKey%, togg
return
togg:
if(metroActive){
metroActive := false
SoundBeep, 440, 100
sleep, 50
SoundBeep, 400, 100
SetTimer, refreshAbility, Off
}
else{
metroActive := true
SoundBeep, 400, 100
sleep, 50
SoundBeep, 440, 100
Gosub, refreshAbility
SetTimer, refreshAbility,%abDur%
}
return
refreshAbility:
send %mKey%
return