Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 20:33

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Autoit Pixel HP AND MP Bot Help

Discussion on Autoit Pixel HP AND MP Bot Help within the AutoIt forum part of the Coders Den category.

Reply
 
Old 03/05/2014, 13:53   #16
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
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")
mlukac89 is offline  
Old 03/05/2014, 18:10   #17
 
elite*gold: 0
Join Date: Jun 2012
Posts: 17
Received Thanks: 0
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..
DjNanos is offline  
Old 03/05/2014, 19:36   #18
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
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
mlukac89 is offline  
Thanks
1 User
Old 03/06/2014, 01:54   #19
 
elite*gold: 0
Join Date: Jun 2012
Posts: 17
Received Thanks: 0


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
DjNanos is offline  
Reply


Similar Threads Similar Threads
Autoit und Pixel!!
05/30/2012 - elite*gold Trading - 0 Replies
Hallo Forum. Ich bin gerade beim bot schreiben auf ein Problem gestoßen ... und zwar ich hab ein spiel und der bot soll auf den X-Y feld nach einem pixel suche ... wenn er es gefunden hatt soll er drauf klicken ...(falls es noch nicht da ist soll er so lange warten bis er es findet) dann solls weiter gehen nach erfolgreichen klicken auf die eine farbe kommt die suche nach der nächsten ... wieder mit den gleich bedingungen ... und so weiter...
Autoit / Pixel Detection / SRO
06/08/2011 - SRO Coding Corner - 1 Replies
Ok guys im new to all this and new to coding, i basicly wanna start in coding programs from SRO and my long term goal is to develop a working bot. Ive been doing some research and so far Autoit looks a good place to start, my question is how well does pixel detection work with sro, and what obsitcales am i likely to face? Thanks for the help in advanced time to do some more research.



All times are GMT +1. The time now is 20:33.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.