evilelf Posted August 2, 2008 Share Posted August 2, 2008 (edited) I Know I saw some one ask this before, I tryed to look in the Search Bar But Failed to Find it. Im trying to do this. While 1 $Coords = PixelSearch(8,48,771,542, 0xF2EF7D) If isArray($Coords) then MouseClick("Left",$Coords[0], $Coords[1]) EndIf WEnd Or WinWaitActive("Windows Internet Explorer") $HowManyCount = InputBox("TheLoop", " How Manny Times To Loop" , "Insert Here![0]") Func _Clown() $ClownSearch = PixelSearch(8,48,771,542,0xF2EF7D) If Not @error Then MouseClick("Left",$ClownSearch[0],$ClownSearch[1]) Sleep(Random(200,500)) EndIf EndFunc $i = $HowmanyCount;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Do;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; _Clown() ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; $HowmanyCount = $HowmanyCount - 1;;;;;;;;;;;;; Until $HowmanyCount = 0;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Now My Problem is, after it Finds the Pixel It Will Try to Click On the Object But its Moving... My Question is how Would I Have the MouseClick+Move{3}More Pixels Over then Click? I'll Repost if you dont Understand. Edited August 2, 2008 by evilelf Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 2, 2008 Share Posted August 2, 2008 I don't really understand the bottom half of your post but I think you want to know how to click 3 pixels right of the pixel found by PixelSearch(), correct?? If so: MouseClick("Left", $ClownSearch[0]+3, $ClownSearch[1]) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
evilelf Posted August 2, 2008 Author Share Posted August 2, 2008 (edited) Im Trying to do a PixelSearch() On a object that moves in a Flash window. But by the time it founds the Pixel and Then moves to Click its done Moved. Im Going to Try this out and see if it works, or can work for what i need to be done. -Thanks Edited August 2, 2008 by evilelf Link to comment Share on other sites More sharing options...
evilelf Posted August 5, 2008 Author Share Posted August 5, 2008 This works,... But Its not always landing on the right spot. Maybe there speed is deff, Or maybe i just cant get the +Pixel right.... & Thank You So much! 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