Hello All...
I am making a script to send clicks to a window. Well, I am using MouseClick like this:
Func cliclar($m, $x, $y)
MouseClick($m, $x, $y, 1, 1)
EndFunc
$m is the button ("right")
$x and $y are calculated.
Well, this code are sending more than one CLICK to that position. I tried This code too:
Func cliclar($m, $x, $y)
MouseMove($x, $y, 0)
Sleep(200)
MouseDown($m)
MouseUp($m)
EndFunc
and the same effect
There are a peace of code like this:
clicar("right", 50, 700)
Sleep(5000)
And in this Sleep, it continues to click
Do you have some suggestion?
Thanks for your attention.
Razer
PS.: I put this code on top of script:
AutoItSetOption("MouseClickDelay", 3)
AutoItSetOption("MouseClickDownDelay", 2)