allstarleb Posted July 5, 2016 Report Share Posted July 5, 2016 Hello,I am having trouble with the activate window macro function, i've window activate, window show, set focus, etc. My window names change, I basically want it to find the program (wherever it is) and just bring it to front and focus on it. So if i want to see outlook, it finds it burried in a bunch of windows and brings it to the front and sets the focus. What is the optimal way of achieving this? Thanks, Ali Quote Link to comment Share on other sites More sharing options...
Cory Posted July 6, 2016 Report Share Posted July 6, 2016 We have had a couple of really big discussions about this a couple years back in this forum. With applications like Outlook, the one I was having troubles with, it's not an easy feat because it uses MDI (Multi-Document Interface.) But others here, myself included, did come up with some solutions. Please check there. 1 Quote Link to comment Share on other sites More sharing options...
allstarleb Posted July 11, 2016 Author Report Share Posted July 11, 2016 We have had a couple of really big discussions about this a couple years back in this forum. With applications like Outlook, the one I was having troubles with, it's not an easy feat because it uses MDI (Multi-Document Interface.) But others here, myself included, did come up with some solutions. Please check there. Hi Cory, Thank you for the response, perhaps you can save me the trouble and guide me to where I can find my answer. Right now my "work around" is literally copy paste every iteration of the window in the "show/activate" function. I am sure there is a a more elegant solution. I was thinking it would be something like activate window "Inbox - *.* - Outlook" and it would activate any window with that front/end the same and whatever in the middle. Thanks Quote Link to comment Share on other sites More sharing options...
Cory Posted July 11, 2016 Report Share Posted July 11, 2016 There's a search button in the upper right corner of the screen:-) I don't remember exactly when it was and I post a lot of stuff here so that's how I would find it. I would rather you spend the time looking up the solution for your problem than me. Quote Link to comment Share on other sites More sharing options...
allstarleb Posted July 21, 2016 Author Report Share Posted July 21, 2016 There's a search button in the upper right corner of the screen:-) I don't remember exactly when it was and I post a lot of stuff here so that's how I would find it. I would rather you spend the time looking up the solution for your problem than me. Hey Cory, I found the solution, it wasn't on the forum. I noticed the forum's search function kinda sucks and it gives me many pointless hits. So I always ask because if you know, then great, if you don't then it's all good. If someone asks something and I know I always like to share the information because you don't really lose anything and if I am in their shoes i'd like to have someone just save me time and give me the information directly (more efficient). So the solution was simply to just delete the parts you are not using. So if the window is "Inbox - email@email.com - Outlook" I would just have "- Outlook" as the window to be selected. Not perfect but close enough, very improbable that another window will be active that also has that ending. You can even have if window = "Inbox - " and "- Outlook" then do this... that way you can be "extra" sure it's the right window. I'll mark my own post solved hehe Quote Link to comment Share on other sites More sharing options...
Cory Posted July 21, 2016 Report Share Posted July 21, 2016 I often use google to search the forum. It's there. Believe me. We talked about this a lot. Do yo uknow how to use the site parameter in Google? Along with your search terms include "site:http://pgmacros.invisionzone.com/" 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.