I'm new to ahk and i got a problem about how to let the script read text in specific exe on screen
Here is my script:
Code:
Code: Select all
^H::
SetKeyDelay, 60, 20
Loop{
SetTitleMatchMode, 2
ControlFocus,, ahk_exe Discord.exe
Sleep 300
ControlSend, ,hi,ahk_exe Discord.exe
wait(61000,61250)
}
wait(min, max) {
Random, rand, min, max
Sleep, rand }
after_loop:
return
^J::Reload
sleep 1000
Msgbox, 4,, Reload not working!
return
Thanks a lot if you're able to help me!!