Jump to content

PixelSearch+Move


Recommended Posts

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 by evilelf
Link to comment
Share on other sites

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])
Link to comment
Share on other sites

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 by evilelf
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...