-
Notifications
You must be signed in to change notification settings - Fork 0
/
vampiresurvivors.ahk
48 lines (35 loc) · 1.11 KB
/
vampiresurvivors.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
#Persistent
#SingleInstance, force
;#MaxHotkeysPerInterval 200
SendMode Event
SetWorkingDir, %A_ScriptDir%
; uncomment this if script keys are noticeably slower than normal
;Process, Priority, , High
; you shouldn't need to change anything below here
global AppId := 1794680
global GameName := "Vampire Survivors"
global WindowTitle := "Vampire Survivors"
; import the shared script functions after we declared the AppId and GameName
#Include, scripts/ahk_shared.ahk
Try
{
RemoveStandardMenuItems()
AddGameTrayMenuItems()
AddToolMenuItems()
}
Finally
{
AddStandardTrayMenuItems()
ShowNotification(GameName)
}
return
#UseHook ; Force the use of the hook for hotkeys after this point.
#If WinActive(WindowTitle)
$f::Space ; Makes the 'f' key send an 'Enter' key
$Up::w ; Makes the 'w' key send an 'Up' key
$Left::a ; Makes the 'a' key send a 'Left' key
$Down::s ; Makes the 's' key send a 'Down' key
$Right::d ; Makes the 'd' key send a 'Right' key
$RCtrl::RButton
#If
^+r::Reload ; {Ctrl + Shift + r} reloads the current script