Modify

Opened 17 years ago

Closed 17 years ago

#757 closed Feature Request (Completed)

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

Reported by: MrCreatoR <mscreator@…> Owned by: J-Paul Mesnage
Milestone: 3.3.1.0 Component: AutoIt
Version: Severity: None
Keywords: MouseClick default position Cc:

Description

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.

P.S
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 :)

Thanks.

Attachments (0)

Change History (2)

comment:1 by TicketCleanup, 17 years ago

Version: 3.2.12.1

Automatic ticket cleanup.

comment:2 by J-Paul Mesnage, 17 years ago

Milestone: 3.3.1.0
Owner: set to J-Paul Mesnage
Resolution: Completed
Status: newclosed

Added in version: 3.3.1.0

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.