cldcp00 Posted November 1, 2019 Report Share Posted November 1, 2019 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? Quote Link to comment Share on other sites More sharing options...
acantor Posted November 1, 2019 Report Share Posted November 1, 2019 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. Quote Link to comment Share on other sites More sharing options...
acantor Posted November 1, 2019 Report Share Posted November 1, 2019 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_ Quote Link to comment Share on other sites More sharing options...
Cory Posted November 1, 2019 Report Share Posted November 1, 2019 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. Quote Link to comment Share on other sites More sharing options...
cldcp00 Posted November 1, 2019 Author Report Share Posted November 1, 2019 Thanks Guys I will Experiments with Windows Control which i feel is best for what I am trying to do Quote Link to comment Share on other sites More sharing options...
Cory Posted November 2, 2019 Report Share Posted November 2, 2019 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. Quote Link to comment Share on other sites More sharing options...
acantor Posted November 3, 2019 Report Share Posted November 3, 2019 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.