Jump to content
Macro Express Forums
orsonk

Activate Window command not working

Recommended Posts

Just tried something I thought would be simple: Using Activate Window to bring an already-open app window to the front. Not working. Any insights would be appreciated. Thanks. 

Orson

Share this post


Link to post
Share on other sites

Is the program a UWP app (Windows Store) or a conventional WinAPI program?

Share this post


Link to post
Share on other sites

Hi Cory,

I suspect it's a conventional app. Not sure. It's CintaNotes (very useful note-taking application). It has multiple windows you open, and maybe that's part of the problem. 

Orson

Share this post


Link to post
Share on other sites

When inserting the Window Activate command, click the "Browse" and select the specific CintaNotes windows you want to activate. Then set the "window title" drop down to "Exact Match." Save the macro and test.

If it works, edit the command to work more generally. For example, if the window title is "CintaNotes - Document001" but you want it to work for Document 001, 002, 003, etc., delete "001" and then change the drop down to "Partial Match."

Share this post


Link to post
Share on other sites

Exactly what acantor said. If it's MDI you might have some issues. In some cases the 'documents' can exist outside the parent window. But technically they're still part of that parent window. Also if there are multiple windows with the same title it can get difficult. I had that problem with Outlook. But look and see what you see when you browse and we will take it from there. 

Share this post


Link to post
Share on other sites

Thanks, acantor and Cory. In the end, I think my keyboard shortcut might have been the issue. I might have picked a keyboard shortcut that was already being used for something else. I changed it, and the macro is working now! Thanks again. 

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

×