Register for your free account! | Forgot your password?

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

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

Advertisement



Pixel Search 2 Codes

Discussion on Pixel Search 2 Codes within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2012
Posts: 60
Received Thanks: 1
Pixel Search 2 Codes

Hallo, ich habe gerade ein Problem.
Ich möchte, das er nicht nach einem Farbcode sucht:
PHP Code:
        $pixel2 PixelSearch(0013657670x85604F)
        If 
IsArray($pixel2) = True Then
        MouseMove
($pixel2 [0], $pixel2 [1], 1)
        
MouseClick("Left")
        
_baum()
        EndIf 
Sondern nach 2. z.B. wen das gehen würde:
PHP Code:
        $pixel2 PixelSearch(0013657670x85604F|0xFFFFFF)
        If 
IsArray($pixel2) = True Then
        MouseMove
($pixel2 [0], $pixel2 [1], 1)
        
MouseClick("Left")
        
_baum()
        EndIf 
Kann mir jemand helfen?
masterkuchen1324 is offline  
Old 11/09/2012, 22:42   #2
 
fuso98's Avatar
 
elite*gold: 428
Join Date: Dec 2011
Posts: 2,722
Received Thanks: 2,035
you can use 2 pixel search separated:

PHP Code:
$pix1 pixelsearch ()
$pix2 pixelsearch ()
if 
IsArray ($pix1then
mousemove 
()
mouseclick ()
_baum()
elseif 
IsArray ($pix2then
MouseMove 
()
mouseclick ()
_baum()
endif 
fuso98 is offline  
Old 11/10/2012, 12:42   #3
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
Einfach nach beiden Farben suchen und prüfen, ob es sich bei den Rückgabewerten um ein Array handelt.
Code:
$Punkt1 = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0)
$Punkt2 = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0xFFFFFF)
If IsArray($Punkt1) And IsArray($Punkt2) Then
	MouseClick("left", $Punkt1[0], $Punkt1[1], 1, 0)
	_Blaaa($Punkt2[0], $Punkt2[1])
EndIf
KDeluxe is offline  
Reply


Similar Threads Similar Threads
Pixel Search
05/07/2012 - AutoIt - 1 Replies
Hey, mit welchen Programm bekomme ich nochmal diese Werte her? PixelSearch(12, 174, 1028, 700, 0x59571A, 10) Danke
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 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 23:20.


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.