Jump to content
Macro Express Forums

How do you make macro for LBUTTONDBLCLK?


freeME

Recommended Posts

Maybe something like this? The mouse pointer moves to the target to double click it, but only for a fraction of second.

 

// Capture mouse position (can specify relative to the window or screen)

Get Mouse Position into (%N1%, %N2%) Relative to Screen

 

// Move mouse to target, and double click

Mouse Move: 100, 200 Relative to Screen

Mouse Left Double Click

 

//Restore original mouse position

Mouse Move: %N1%, %N2% Relative to Screen

Link to comment
Share on other sites

Maybe something like this? The mouse pointer moves to the target to double click it, but only for a fraction of second.

 

// Capture mouse position (can specify relative to the window or screen)

Get Mouse Position into (%N1%, %N2%) Relative to Screen

 

// Move mouse to target, and double click

Mouse Move: 100, 200 Relative to Screen

Mouse Left Double Click

 

//Restore original mouse position

Mouse Move: %N1%, %N2% Relative to Screen

I need to have my cursor available at all times though

Link to comment
Share on other sites

I need to have my cursor available at all times though

 

If the mouse pointer cannot be moved for even 5 or 10 milliseconds, you need another approach that does not involve the mouse.

 

Is it possible to perform the task by keyboard? If yes, then your macro will send a sequence of keystrokes rather than mess with the mouse.

 

Alternatively, you might be able to use ME to capture information about the control you want to double-click, and then activate the control programmatically. This is probably the most elegant and reliable solution, although implementing it would not be easy for a beginner.

Link to comment
Share on other sites

If the mouse pointer cannot be moved for even 5 or 10 milliseconds, you need another approach that does not involve the mouse.

 

Is it possible to perform the task by keyboard? If yes, then your macro will send a sequence of keystrokes rather than mess with the mouse.

 

Alternatively, you might be able to use ME to capture information about the control you want to double-click, and then activate the control programmatically. This is probably the most elegant and reliable solution, although implementing it would not be easy for a beginner.

It is only possible to do the action with LDBLCLICK. Or 2x LCLICK of course.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...