Sign in to follow this  
Followers 0
wccppp

detect mouse double-click?

4 posts in this topic

Hello,

Is there any function in AutoIt that will allow me to detect a mouse double-click event? I looked through the functions listed in Mouse Control category and seems they don't fit the need. Any suggestion? Thank you!

- wcc

Share this post


Link to post
Share on other sites



Hello,

Is there any function in AutoIt that will allow me to detect a mouse double-click event? I looked through the functions listed in Mouse Control category and seems they don't fit the need. Any suggestion? Thank you!

- wcc

This may get you started: http://msdn.microsoft.com/library/default..../setcapture.asp

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Using the data contained in the help file for GuiGetMsg() combined with some data from Microsoft' MSDN' website, I can say that:

AutoIt only detects the following:

AutoIt Constant | Windows Mouse input notification | What this means:

$GUI_EVENT_PRIMARYDOWN| WM_LBUTTONDOWN | the primary mouse button was pressed.

$GUI_EVENT_PRIMARYUP| WM_LBUTTONUP |the primary mouse button was released.

$GUI_EVENT_SECONDARYDOWN| WM_RBUTTONDOWN |the secondary mouse button was pressed.

$GUI_EVENT_SECONDARYUP| WM_RBUTTONUP |the secondary mouse button was released.

So i think it is safe for me to assume that AutoIt does not detect the WM_LBUTTONDBLCLK and WM_RBUTTONDBLCLK Mouse notifications.

Share this post


Link to post
Share on other sites

Using the data contained in the help file for GuiGetMsg() combined with some data from Microsoft' MSDN' website, I can say that:

AutoIt only detects the following:

AutoIt Constant | Windows Mouse input notification | What this means:

$GUI_EVENT_PRIMARYDOWN| WM_LBUTTONDOWN | the primary mouse button was pressed.

$GUI_EVENT_PRIMARYUP| WM_LBUTTONUP |the primary mouse button was released.

$GUI_EVENT_SECONDARYDOWN| WM_RBUTTONDOWN |the secondary mouse button was pressed.

$GUI_EVENT_SECONDARYUP| WM_RBUTTONUP |the secondary mouse button was released.

So i think it is safe for me to assume that AutoIt does not detect the WM_LBUTTONDBLCLK and WM_RBUTTONDBLCLK Mouse notifications.

I was assuming you could go 'outside' the box and maybe use a 'DLLCall', a bit presumptious I know, but there wasn't nothing said about 'GUI', so I suggested that route.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0