Jump to content

How to rearrange a window being minimized as last in the alt+tab order?


Recommended Posts

Hello,

I have noticed that I have a particular workflow wherein:

  1. I am working on some applications/windows (A, B, C...).
  2. I need to see a few things in an excel file xyz.
  3. 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?

Link to comment
Share on other sites

[Corrected question:]

Hello,

I have noticed that I have a particular workflow wherein:

  1. I am working on some applications/windows (A, B, C...).
  2. I need to see a few things in an excel file xyz.
  3. 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?

Link to comment
Share on other sites

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?

Untitled.png

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...