-
Notifications
You must be signed in to change notification settings - Fork 1
/
carvingIvara.ahk
74 lines (64 loc) · 1.24 KB
/
carvingIvara.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
72
73
74
#NoEnv
#Warn
SendMode Input
SetWorkingDir %A_ScriptDir%
/*
Ivara prowl bullet jump macro
Combined with the carvingSpike macro
Because they do not combine
*/
/*
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
*/
triggerKey := "LCtrl"
crouchKey := "LCtrl"
jumpKey := "Space"
spamKey := "e"
meleeKey := "e"
forwardKey := "w"
disableKey := "7"
frequency := 100
;Setup
period := (1/frequency)*1000
disabled := false
Hotkey, *%spamKey%, startSpam
Hotkey, *%triggerKey%, bulletJump
Hotkey, *%disableKey%, toggleLock
bulletJump:
Send, {%crouchKey% down}
Send, {%jumpKey%}
Send, {%crouchKey% up}
return
loop:
if(GetKeyState(spamKey,"P"))
Send, %meleeKey%
else{
SetTimer, loop, Off
if (not GetKeyState(forwardKey,"P"))
Send, {%forwardKey% up}
}
return
startSpam:
SetTimer, loop, %period%
Send, {%forwardKey% down}
return
toggleLock:
if (disabled){
disabled := false
SoundBeep, 400, 100
sleep, 50
SoundBeep, 440, 100
Hotkey, *%triggerKey%, On
Hotkey, *%spamKey%, On
}
else{
disabled := true
SoundBeep, 440, 100
sleep, 50
SoundBeep, 400, 100
Hotkey, *%triggerKey%, Off
Hotkey, *%spamKey%, Off
}
return