Anyone can tell me why this doesn't work? My dragonica window will be active, but it just wont spam the x every second. I have tried messing around with the codes but no luck o.O
;HotKey for terminating the script
#include <file.au3>
Dim $aRecords
;Window title for dragonica should be changed after every patch
$WinTitle = "Dragonica (Client Ver : 0.908.1301)"
;Force focus on dragonica
WinActivate($WinTitle)
$i = 0 ;Creates an endless loop
While $i = 0
Do
ControlSend($WinTitle,'','','{x}')
Sleep(10); Sends the x key to the window
ControlSend($WinTitle,'','','{SPACE}')
Sleep(10); Sends the SPACE key to the window
Until $i = 1
WEnd
;HotKey for terminating the script
#include <file.au3>
Dim $aRecords
;Window title for dragonica should be changed after every patch
$WinTitle = "Dragonica (Client Ver : 0.908.1301)"
;Force focus on dragonica
WinActivate($WinTitle)
$i = 0 ;Creates an endless loop
While $i = 0
Do
ControlSend($WinTitle,'','','{x}')
Sleep(10); Sends the x key to the window
ControlSend($WinTitle,'','','{SPACE}')
Sleep(10); Sends the SPACE key to the window
Until $i = 1
WEnd