Kilo Posted April 22, 2008 Share Posted April 22, 2008 I made a script that looks for a pixel and then clicks the pixel, but what would i add to this if i wanted it to search for more than one color so it would click if either color showed up? While 1=1 $coor = PixelSearch( 40, 85, 444, 576, 0x3f3f3f, 0, 1 ) if not @error then MouseClick ( "left" , $coor[0] , $coor[1] , 1 , 2 ) Else sleep (1500) endif Wend help much appreciated Link to comment Share on other sites More sharing options...
spudw2k Posted April 22, 2008 Share Posted April 22, 2008 (edited) While 1=1 Dim $colors[2] = ["0x3f3f3f","0xFF0000"] For $i = 0 to Ubound($colors) -1 $coor = PixelSearch( 40, 85, 444, 576, $colors[$i], 0, 1 ) if not @error then MouseClick ( "left" , $coor[0] , $coor[1] , 1 , 2 ) Else sleep (1500) endif Next WendoÝ÷ Ø:'ßÛ_¢¸µ©Þ±Æ©{ú®Ù¶"·¢iÛ(ëax%G©àx-å¡W¥w¡«¢+Ù]¡¥±]¥¹Ñ¥Ù ÅÕ½Ðí]¥¹½Ý9µÅÕ½Ðì Edited April 22, 2008 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Kilo Posted April 22, 2008 Author Share Posted April 22, 2008 Yeh i just needed some help with that part in it. thanks a bunch Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now