Code: Select all
#IfWinActive, ahk_class UnrealWindow
GetKeyState("RShift")
SetKeyDelay, 500
Send, s
Sleep, 10
Send, d
Sleep, 10
Send, w
return
#IfWinActive
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
Code: Select all
#IfWinActive, ahk_class UnrealWindow
GetKeyState("RShift")
SetKeyDelay, 500
Send, s
Sleep, 10
Send, d
Sleep, 10
Send, w
return
#IfWinActive
How is always getting an error OK? That is a v1 script. AHK v2 has very different syntax. See the AHK v2 documentation.
Code: Select all
#Requires AutoHotkey v2.0
HotIfWinActive "ahk_class UnrealWindow"
;100-200ms probably better 10 may be too fast and end up skipping ingame stuff and cloggin buffer
SetTimer Unreal, 10
Unreal() {
if GetKeyState("RShift", "P") {
While GetKeyState("RShift", "P") {
Sendinput "sdw"
}
return
}
}
You don’t have to convert a script to .exe in order to run it as admin. Is there some other advantage to doing that?OuroborosGhost wrote: ↑ best for games to convert to .exe and run as admin
Users browsing this forum: No registered users and 8 guests