Autoit Pixel HP AND MP Bot Help

03/05/2014 13:53 mlukac89#16
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")
03/05/2014 18:10 DjNanos#17
Quote:
Originally Posted by mlukac89 View Post
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.bin
i replaced it with "l2.bin" nothing, then i tried "l2.exe" nothing again..
03/05/2014 19:36 mlukac89#18
Then just make like this, replace only this function

Code:
; 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
03/06/2014 01:54 DjNanos#19
[Only registered and activated users can see links. Click Here To Register...]

thats how it looks like



Code:
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