-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsatisfactory.ahk
More file actions
40 lines (32 loc) · 787 Bytes
/
satisfactory.ahk
File metadata and controls
40 lines (32 loc) · 787 Bytes
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Recommended for catching common errors.
#SingleInstance force ; only one instance of script can run
#Persistent ; to make it run indefinitely
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#IfWinActive Satisfactory
keyToHold:="Click Left"
KeyDown := false
key2ToHold:="["
Key2Down := false
z::
KeyDown := !KeyDown
If KeyDown
SendInput {%keyToHold% down}
Else
SendInput {%keyToHold% up}
Return
]::
while GetKeyState("]","P")
{
Send, [
Sleep 50
}
return
=::
Key2Down := !Key2Down
If Key2Down
SendInput {%key2ToHold% down}
Else
SendInput {%key2ToHold% up}
Return