Code: Select all
Run, C:\Users\File.exe,,, GTX01
sleep 5000
ControlSend,, {1}, ahk_pid %GTX01% ;type 1234 (but wont work, the script stuck there)
ControlSend,, {2}, ahk_pid %GTX01%
ControlSend,, {3}, ahk_pid %GTX01%
ControlSend,, {4}, ahk_pid %GTX01%
Sorry, im very new into programming, i think that spam "ControlSend" wasn't good, and how to make it efficient? thanks!