1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
#Include <Misc.au3> #include <AutoItConstants.au3> Func MouseDownUp() $MyRandom = Random ( 1, 25, 0 ) Sleep(1 * $MyRandom) MouseDown($MOUSE_CLICK_LEFT) ; Set the left mouse button state as down. $MyRandom = Random ( 1, 25, 0 ) Sleep(1 * $MyRandom) MouseUp($MOUSE_CLICK_LEFT) ; Set the left mouse button state as up. Return EndFunc While 1 While _IsPressed (01) ;$Pos = MouseGetpos () ;Mouseclick ("Left", $Pos[0], $Pos[1], 1, 0) ConsoleWrite("click") $MyRandom = Random ( 1, 50, 0 ) Sleep(1 * $MyRandom) MouseUp($MOUSE_CLICK_LEFT) ; Set the left mouse button state as up. While _IsPressed (02) MouseDownUp() wend Wend Wend |