KillingEye Posted June 15, 2009 Posted June 15, 2009 My script should click x times at the current pos. How can i do this? In this case my mouse moves at the left upper corner. HotkeySet("{F5}", "Start") HotkeySet("{F6}", "Stop") While 1 Sleep(100) WEnd Func Stop() Exit 0 EndFunc Func Start() MouseClick("left", default, default, 2) EndFunc
muncherw Posted June 15, 2009 Posted June 15, 2009 Func Start() MouseClick("left", 2) EndFunc Other People's Stuff:Andy Flesner's AutoIt v3: Your Quick Guide[topic="34302"]Locodarwin's ExcelCom_UDF[/topic][topic="61090"]MrCreatorR's Opera Library[/topic]
herewasplato Posted June 15, 2009 Posted June 15, 2009 (edited) My script should click x times at the current pos. ...Func Start() MouseClick("left") MouseClick("left") EndFunc ;==>StartoÝ÷ Ùçb¶Ø^r^jwjº¡×¢iÝýméhÁªÞ~º&¶¡zZ_W®×«2¬x)brF®¶sc²F÷V&ÆR6Æ6²BFR7W'&VçBÖ÷W6R÷0¤Ö÷W6T6Æ6²gV÷C¶ÆVgBgV÷C²¤Ö÷W6T6Æ6²gV÷C¶ÆVgBgV÷C² If by "x times" you mean a variable number of times, then use a For/Next loop. Edited June 15, 2009 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size]
FreeFry Posted June 15, 2009 Posted June 15, 2009 (edited) Func Start() MouseClick("left", 2) EndFuncWrong. either he could just repeat the function call: MouseClick("left") MouseClick("left") or he could get the x and y coordinates of the mouse, and click there: $aMousePos = MouseGetPos() MouseClick("left", $aMousePos[0], $aMousePos[1], 2) or in one line(less efficient, but no array usage, and in one line): MouseClick("left", MouseGetPos(0), MouseGetPos(1), 2) Edit: argh plato Edited June 15, 2009 by FreeFry
KillingEye Posted June 15, 2009 Author Posted June 15, 2009 Ok ty Mod! The last thing is perfect! Ty! Ty u other guy too!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now