Code:
HotKeySet("{ESC}", "Terminate")
HotKeySet("{PAUSE}", "AutoAttackToggle")
Global $Flag = False
$i=1
While 1
Sleep(10)
WEnd
Func Terminate()
Exit 0
EndFunc
Func AutoAttackToggle()
$Flag = Not $Flag
If $Flag Then
AutoAttack()
Else
AutoAttackOff()
EndIf
EndFunc
Func AutoAttack()
While 1
ControlSend('Dragonica (Client Ver : 0.1.21)','','','{x}')
ControlSend('Dragonica (Client Ver : 0.1.21)','','','{v}')
WEnd
EndFunc
Func AutoAttackOff()
While 1
Sleep(100)
WEnd
EndFunc