Modify

Opened 16 years ago

Closed 16 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 by J-Paul Mesnage, 16 years ago

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

comment:2 by TicketCleanup, 16 years ago

Version: 3.3.6.0

Automatic ticket cleanup.

in reply to:  1 comment:3 by anonymous, 16 years ago

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 by J-Paul Mesnage, 16 years ago

Resolution: Rejected
Status: newclosed

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

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


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