Modify

Opened 14 years ago

Closed 14 years ago

#1753 closed Feature Request (Rejected)

MouseGetButtonState

Reported by: fr.r@… Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

Hello,

Firts I'd like to thank you for this great tool that I know and use since version 2. I use it almost everyday and it helps me a lot. So thanks.

Now, the suggestion:

I sometimes use autoit for semi-automated sequence in cooperation with user; meaning that user handles the mouse by himself, and the script watches at what user is doing in order to start specific sequence of operations depending on context.

For example, I'd like to make a script that performs a "Ctrl-a Ctrl-c" operation when user click on a particular area of the client area of an application.

For that kind of script, I use the MouseGetPos and MouseGetCursor functions but some useful functions are missing, such as: MouseGetButtonState which could return current state of the mouse buttons (eg: BTNUP, BTNDOWN, ... ).

I think implementing such a function would not be too complex, and seams to me quite relevant in some situations.

Thanks for your time and consideration.

Attachments (0)

Change History (4)

comment:1 follow-up: Changed 14 years ago by Jpm

Are you thinking about any Windows API to implement such function?

comment:2 Changed 14 years ago by TicketCleanup

  • Version 3.3.6.0 deleted

Automatic ticket cleanup.

comment:3 in reply to: ↑ 1 Changed 14 years ago by anonymous

Replying to Jpm:

Are you thinking about any Windows API to implement such function?

Thanks for your answer.

I am not expert in windows programming but I guess that the GetKeyState() function could be used, using the virtual key codes: VK_LBUTTON, VK_RBUTTON, VK_MBUTTON, ...

http://docvb.free.fr/apidetail.php?idapi=160

Regards,

comment:4 Changed 14 years ago by Jpm

  • Resolution set to Rejected
  • Status changed from new to closed

In fact you are looking for an already implemented UDF _IsPressed()

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 ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.