Jump to content
Macro Express Forums
cldcp00

Single Click On Button

Recommended Posts

Hi

I have a macro where I need to click on a button within Windows File Explorer that does not have a shortCut assigned.

 

What is the best way to do this?

 

 

Share this post


Link to post
Share on other sites

The best way is probably not by clicking on your target. Try using the File Explorer's built in hotkeys to navigate close to where you want, either Tab or Shift Tab to your target, and then either press Enter or spacebar to activate. (It may be one, the other, or either.) There are a few controls in the File Explorer that use the arrow keys, as well.

Share this post


Link to post
Share on other sites

For example, in Windows 7, I can navigate to the Address bar with Alt + D, to the "Search" field with Ctrl + E. (Not sure these have changed in Windows 10).

 

Does the command you are trying to activate via the mouse appear on any of File Explorer's menus? If yes, that's a very reliable method. For example, if you are "aiming" for "Tiles" view, you can send a sequence of keystrokes like this:

 

Alt+v    //_V_iew menu

s           //Tile_S_

Share this post


Link to post
Share on other sites

I believe the best way to do this is to use the Windows Controls commands. You can send a mouse-click event directly to the control. See the Get Control section of the help file. 

Share this post


Link to post
Share on other sites

There was a tutorial in the sample file or in the support section on the website which used the Windows Calculator. That's how I learned. 

Share this post


Link to post
Share on other sites

Even when using Window Controls to jump the mouse cursor, or give focus, to a control that Macro Express can access, you may need to use other, less elegant methods to complete the action. For example, you may need to move the mouse pointer along the control to a specific spot, or navigate to a target via keyboard.

 

Share this post


Link to post
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...