Jump to content
Sign in to follow this  
KillingEye

Double Click at the current pos

Recommended Posts

KillingEye

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

Share this post


Link to post
Share on other sites
muncherw

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]

Share this post


Link to post
Share on other sites
KillingEye

Incorrect number of parameter :D

Share this post


Link to post
Share on other sites
herewasplato

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 by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
FreeFry

Func Start()
     MouseClick("left", 2)
EndFunc
Wrong.

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 :D

Edited by FreeFry

Share this post


Link to post
Share on other sites
KillingEye

Ok ty Mod!

The last thing is perfect!

Ty!

Ty u other guy too! :D

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×