Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 00:29

  • 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   #2
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,427
Received Thanks: 1,883


MoepMeep is offline  
Old   #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   #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   #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



« Previous Thread | Next Thread »

Similar Threads
help with pixel search
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...
3 Replies - AutoIt
Pixel search Bot Problem
Hallo ich habe hier folgenden Bot gemacht: Auto it Global $paused Global $i Global $a = 100 Global $Mouse Global $ii HotKeySet("{F8}",...
6 Replies - General Coding
Pixel Search Click
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...
4 Replies - AutoIt
Aoc Bot with Pixel search or how
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...
0 Replies - General Gaming Releases
Pixel search
hallihallo bin immoment dabei einen meiner eigenen bots zu optimieren und wollte ne Pixelsearchfunktion einbauen. Leider weiß ich nicht genau wie...
18 Replies - Guild Wars



All times are GMT +1. The time now is 00:29.


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

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