Modify

Opened 16 years ago

Closed 16 years ago

#757 closed Feature Request (Completed)

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

Reported by: MrCreatoR <mscreator@…> Owned by: Jpm
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 Changed 16 years ago by TicketCleanup

  • Version 3.2.12.1 deleted

Automatic ticket cleanup.

comment:2 Changed 16 years ago by Jpm

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

Added in version: 3.3.1.0

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

Action
as closed The owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.