First of all you didn't changes in here ProcessExists("calc.exe"), press CTRL ALT DEL to start Task manager->process and find your process game name and put it here ProcessExists("yourgame.exe")
no hope :s on task manager it says l2.binQuote:
First of all you didn't changes in here ProcessExists("calc.exe"), press CTRL ALT DEL to start Task manager->process and find your process game name and put it here ProcessExists("yourgame.exe")
; Function that runs bot
Func _run()
$run = Not $run
While $run
If PixelGetColor(165, 64) <> 0x5A4D39 Then
Send("{F11}")
Sleep(500)
EndIf
If PixelGetColor(140, 92) <> 0x184563 Then
Send("{F12}")
Sleep(500)
EndIf
WEnd
EndFunc
HotKeySet("{HOME}", "_run") ; HOME key calls function _run
HotKeySet("{ESC}", "_quit") ; ESC key calls function _run
Dim $run = False
While 1
Sleep(20)
WEnd
; Function that runs bot
Func _run()
$run = Not $run
While $run
If PixelGetColor(165, 64) <> 0x5A4D39 Then
Send("{F11}")
Sleep(500)
EndIf
If PixelGetColor(140, 92) <> 0x184563 Then
Send("{F12}")
Sleep(500)
EndIf
WEnd
EndFunc
; Function that exit bot
Func _quit()
Exit
EndFunc