Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 22:13

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

Advertisement



Hello Guys Question About Pixel Search

Discussion on Hello Guys Question About Pixel Search within the AutoIt forum part of the Coders Den category.

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,425
Received Thanks: 1,888
MoepMeep is offline  
Old 12/12/2011, 19:54   #3
 
GoDJGo's Avatar
 
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
 
Imaginär's Avatar
 
elite*gold: 255
Join Date: Nov 2009
Posts: 2,900
Received Thanks: 1,408
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
 
derpo's Avatar
 
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


Similar Threads 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 became not grey make script 2 till its finished, and when script 2 finish has to go to the compare pixel spot for starting again with script 1 till is not grey to make script 2 ...... and so on indefinitly it would be something like this?
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 enemy
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: x1;y1;;x2;y2;;x3;y3) sollen geprüft werden ob sie in GRÜN sind. falls x1;y1 grün ist -> (dollerzeichen)folge = 1 falls x2;y2 grün ist -> (dollerzeichen)folge = 2 falls x3;y3 grün ist -> (dollerzeichen)folge = 3



All times are GMT +1. The time now is 22:14.


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.