gamepin126 Posted May 24, 2006 Posted May 24, 2006 How would I add multipile colors to pixelsearch, I'd really like to only have 1 variable and not have to write more loops.
Don N Posted May 24, 2006 Posted May 24, 2006 Have you tried using shade variation if the colors are similar. If not jsut make an array of the colors you want to search for and put one loop in ur program that pixel searches for each one in the array. _____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper
gamepin126 Posted May 25, 2006 Author Posted May 25, 2006 (edited) Could you show me an example? I have this script working fine, but I just wanted to use 1 variable and not 3. ; http://freeaddictinggames.com/games/aderans/aderans.swf WinWaitActive ("aderans.swf (application/x-shockwave-flash Object) - Mozilla Firefox") $SearchColorRed = 0xCE404E $SearchColorYellow = 0xFE9214 $SearchColorBlue = 0xFCFFF6 $aimbot = 0 HotKeySet("{UP}", "Toggleaimbot") While 1 If $aimbot = 1 Then $coord1 = PixelSearch( 227, 280, 1165, 791, $SearchColorRed, 2) $coord2 = PixelSearch( 227, 280, 1165, 791, $SearchColorYellow, 10) $coord3 = PixelSearch( 227, 280, 1165, 791, $SearchColorBlue, 3) If IsArray($coord1) = 1 Then MouseClick('left', $coord1[0], $coord1[1], 1, 0) Send ("{R}") ElseIf IsArray($coord2) = 1 Then MouseClick('left', $coord2[0], $coord2[1], 1, 0) Send ("{R}") ElseIf IsArray($coord3) = 1 Then MouseClick('left', $coord3[0], $coord3[1], 1, 0) Send ("{R}") EndIf EndIf WEnd Func Toggleaimbot() If $aimbot < 1 Then $aimbot = $aimbot + 1 Else $aimbot = 0 EndIf EndFunc Edited May 25, 2006 by gamepin126
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