NoobDev Posted August 22, 2020 Posted August 22, 2020 Hello, I have noticed that I have a particular workflow wherein: I am working on some applications/windows (A, B, C...). I need to see a few things in an excel file xyz. Then I need to return back to the applications/windows (A, B, C...) on which I was working. So for this workflow, I have created a script wherein I have defined a hotkey to Winactivate("xyz"). And when the things I need to see in the excel file, I press that hotkey again to minimize xyz using WinSetState ("xyz","", @SW_MINIMIZE). However, using this formulation in the script, what happens is that when xyz is minimized, it becomes the 2nd window in the alt+tab order. Is there a way to rearrange the alt+tab order so that when xyz excel is minimized, it becomes the last application in the alt+tab order?
NoobDev Posted August 22, 2020 Author Posted August 22, 2020 [Corrected question:] Hello, I have noticed that I have a particular workflow wherein: I am working on some applications/windows (A, B, C...). I need to see a few things in an excel file xyz. Then I need to return back to the applications/windows (A, B, C...) on which I was working. So for this workflow, I have created a script wherein I have defined a hotkey to Winactivate("xyz"). And when I am done seeing the things I need to see in the excel file, I press that hotkey again to minimize xyz using WinSetState ("xyz","", @SW_MINIMIZE). However, using this formulation in the script, what happens is that when xyz is minimized, it becomes the 2nd window in the alt+tab order. Is there a way to rearrange the alt+tab order so that when xyz excel is minimized, it becomes the last application in the alt+tab order?
NoobDev Posted August 26, 2020 Author Posted August 26, 2020 Here's a screenshot of how xyz.xlsx becomes the second window in the Alt+TAB order, thereby hindering with my workflow after being minimized by WinSetState ("xyz","", @SW_MINIMIZE). Any suggestions what I may add to the code to make xyz.xlsx the last item in the Alt+TAB order when the hotkey is pressed?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now