I'm trying to make some scripts with autoit, im just starting simple with a weapon switch, it works in notepad or any other program but it doesn't work ingame, anyone can help me to make it work ingame too?
Code:
HotKeySet("{F2}", "Switch1");if you press F2 Switch will occur
Local $handle = WinGetHandle("[CLASS:SRO_CLIENT]", "SRO_CLIENT")
Func Switch1()
Send("{SPACE down}")
Send("{3}")
Send("{2}")
Send("{SPACE up}")
EndFunc
While 1
Sleep(1000)
WEnd
EDIT: its about iSRO







