pixelSearch; mouseMove while mouseDown

06/23/2013 01:14 1337_pu55y#1
hei,
i want to know how to create a script, that detects a specific colour, which the mouse follows, WHILE holding "rightclick" UNTIL the specific colour disappears.

Lets say your mouse detects a red square, follows it, while holding "rightclick" down. then after a while the square disappears and the mouse stops holding "rightclick".

greetings.
06/23/2013 08:38 YatoDev#2
Just use mousemove , pixelsearch and send commamd
06/23/2013 10:15 Croco™#3
A few usefull funktions for your intend:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

The code could be like this:
Code:
$Pixel = PixelSearch(...)
If isArray($Pixel) Then
    MouseDown("right")
    Do
         $Pixel = PixelSearch(...)
         MouseMove($Pixel[0],$Pixel[1],0)
    Until not isArray($Pixel)
    MouseUp("right")
EndIf
06/23/2013 10:47 1337_pu55y#4
I knew about the mousemove, mousedown/up, isarray and so on.
my problem was to mousemove WHILE holding "rightclick" down.

the "do" ... "until" thing is really helpful for me, thanks again !

greetings.