Opened 15 years ago

Closed 15 years ago

#757 closed Feature Request (Completed)

Set defaults for MouseClick()'s x/y parameters

Reported by: MrCreatoR <mscreator@…> Owned by: Jpm
Milestone: Component: AutoIt
Version: Severity: None
Keywords: MouseClick default position Cc:


For now MouseClick() does not accepting default (-1 or Default keyword) for x and y parameters. It is a problem when we need to set a clicks parameter and click by default in the mouse current position, so we also need to get current mouse position (MouseGetPos()) before we can set a clicks param, here is an example:

$aMouse_Pos = MouseGetPos()
MouseClick("Main", $aMouse_Pos[0], $aMouse_Pos[1], 2)

Instead of doing just this:

MouseClick("Main", -1, -1, 2)

;or this...

MouseClick("Main", Default, Default, 2)

This last example will move the mouse to the upper left corner of the screen and double-click there :( - I excpecting the same results as with the first example, where the mouse will not move but just double clicks on the current position.

I am personaly not a big fan of Mouse* related functions, but sometimes it can help in few tasks, and also i think that i am speaking for other users as well, who use this funcs on daily basis :)


Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

comment:2 Changed 15 years ago by Jpm

  • Milestone set to
  • Owner set to Jpm
  • Resolution set to Completed
  • Status changed from new to closed

Added in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jpm.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.