why mousclick misses?

07/31/2013 22:26 sander2828#1
so i made a code that should click on to pixel it finds but since the pixel is moving it miss clicks it.
how can i reduce the delay between geting pixel and clicking on it?

here is the part of the code: mouseclick on to pixel needs to be instant i have try-d mouseclick("",$boxpixel1[0], $boxpixel1[1],1,0) but still misses.


Code:
$boxpixel1 = PixelSearch(0,0,1366,768, 0xFCFFCD)
		If not @error Then
			_MouseClickFast2($boxpixel1[0], $boxpixel1[1],$User32)
			sleep(GUICtrlRead($timing2))
                EndIf
07/31/2013 22:31 c0w#2
i guess "_mouseclickfast2" is a function of a UDF? for realy fast mouseclicks i simply use
"Mouseclick("left", X, Y,1, 0)" 1 means one click 0 means the speed of the mousemovement.

i dont know what you need your script for but usually imagesearch is more reliable, how fast do those pixels appear?
08/01/2013 01:17 CantShutMyMouth#3
PHP Code:
$boxpixel1 PixelSearch(0,0,1366,7680xFCFFCD)
        If 
not @error Then
            MouseClick
("right",$boxpixel1[0], $boxpixel1[1],0)
            
sleep(GUICtrlRead($timing2))
                EndIf 
This can't miss.
08/01/2013 09:51 FacePalmMan#4
find a pixel, wait for it to move ,let autoit calculate where the pixel would be next and let autoit click there.
08/01/2013 16:58 sander2828#5
Quote:
Originally Posted by CantShutMyMouth View Post
PHP Code:
$boxpixel1 PixelSearch(0,0,1366,7680xFCFFCD)
        If 
not @error Then
            MouseClick
("right",$boxpixel1[0], $boxpixel1[1],0)
            
sleep(GUICtrlRead($timing2))
                EndIf 
This can't miss.
tested still misses srry man

Quote:
Originally Posted by c0w View Post
i guess "_mouseclickfast2" is a function of a UDF? for realy fast mouseclicks i simply use
"Mouseclick("left", X, Y,1, 0)" 1 means one click 0 means the speed of the mousemovement.

i dont know what you need your script for but usually imagesearch is more reliable, how fast do those pixels appear?
it's not about appearing it's about them moving fast

Quote:
Originally Posted by FacePalmMan View Post
find a pixel, wait for it to move ,let autoit calculate where the pixel would be next and let autoit click there.
maby you can add me to skype margus.nightcore