Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 17:25

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


Hello Guys Question About Pixel Search

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2011
Posts: 17
Received Thanks: 0
Hello Guys Question About Pixel Search

Hello Everybody I Have A Question About Pixel Search

Can I Do With Autoit Multi Pixel Search I Mean When The Bot Can't Find A Color It Will Change To Another For Example I Want To Make Bot That Hit All The Red And Blue ***** How Can I Do that With Autoit ? All I Know Is How To Do It With one Color

Can I Make It With Mulit Colors ?

I Hope Your Understand What Iam Saying

Thanks



keroneo is offline  
Old 12/11/2011, 19:33   #2
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,427
Received Thanks: 1,885


MoepMeep is offline  
Old 12/12/2011, 19:54   #3
 
elite*gold: 0
Join Date: Jun 2011
Posts: 741
Received Thanks: 102
I think, its pretty simple!

Use it like so:
While 1
$Variable = PixelSearch (171, 321, 758, 697, 0xFF3300)
If IsArray ($Variable) = True Then
MouseMove ($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
WEnd
While 2
$Variable = PixelSearch (171, 321, 758, 697, 0xFF3300)
If IsArray ($Variable) = True Then
MouseMove ($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
WEnd

.....
GoDJGo is offline  
Old 12/13/2011, 13:59   #4
 
elite*gold: 255
Join Date: Nov 2009
Posts: 2,901
Received Thanks: 1,407
Quote:
Originally Posted by GoDJGo View Post
I think, its pretty simple!

Use it like so:
Code:
While 1
	$Variable = PixelSearch (171, 321, 758, 697, 0xFF3300)
	If IsArray ($Variable) = True Then
		MouseMove ($Variable [0], $Variable [1],1)
		MouseClick ("left")
	EndIf
WEnd
While 2
	$Variable = PixelSearch (171, 321, 758, 697, 0xFF3300)
	If IsArray ($Variable) = True Then
		MouseMove ($Variable [0], $Variable [1],1)
		MouseClick ("left")
	EndIf
WEnd
.....
2 While-loops? No.

I guess it has to look liks this:

Code:
While 1
	
	$pixel1 = PixelSearch(...
	If not @error Then
		;blabla
	Else
		$pixel2 = PixelSearch(...
		If not @error Then
			;blabla2
		EndIf
	EndIf
	
WEnd
Untested tho :f


Imaginär is offline  
Thanks
1 User
Old 12/14/2011, 14:39   #5
 
elite*gold: 0
Join Date: Feb 2010
Posts: 344
Received Thanks: 151
PixelSearch is very slow.

If you want to check multi colors, create an array which includes the colors and check the pixels in a for-loop of the array.


derpo is offline  
Reply



« Game PacketBot? | TcP Server/Client problem »

Similar Threads
help with pixel search
08/08/2011 - AutoIt - 3 Replies
I need to implement in my autoit bot some changes and i am gonna use pixel search. What i exactly want is a script that start pressing a buton then compare a pixel if this pixel is grey make script 1 until pixel is not grey , when the...
Pixel search Bot Problem
01/10/2011 - General Coding - 6 Replies
Hallo ich habe hier folgenden Bot gemacht: Auto it Global $paused Global $i Global $a = 100 Global $Mouse Global $ii HotKeySet("{F8}", "_Scannerstart")
Pixel Search Click
04/11/2010 - AutoIt - 4 Replies
Hi, I am trying to open up Internet Explorer using Pixel Search, But i keep getting Error. Here is my script : It finds the color then double clicks on it,but it cannot find the color,i hope some one can help me, +k for any one who can
Aoc Bot with Pixel search or how
07/20/2008 - General Gaming Releases - 0 Replies
Hi there sorry for my poor english I tryed a aoc bot , but i got several problems the enemys are fare away so i need to walk to them and then hit. i cannot get the next target cause first the bot need to look for 50m to see is there a...
Pixel search
02/23/2008 - Guild Wars - 18 Replies
hallihallo bin immoment dabei einen meiner eigenen bots zu optimieren und wollte ne Pixelsearchfunktion einbauen. Leider weiß ich nicht genau wie man das macht vorallem mit den farben. mein ziel: 3 verschiedene punkte im gw fenster(mit:...



All times are GMT +2. The time now is 17:25.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.