Jump to content

Double Click at the current pos


Recommended Posts

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
Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...