AHK-Virtual-Desktop-Library
AHK-Virtual-Desktop-Library copied to clipboard
All Windows on another desktops
How can I use comething like GetAltTabList() to get the windows of another desktop (like with a parameter). I want that to make a hotkey that skips desktops with no windows.
sorry for the late reply, i just saw this
I don't understand very much but...maybe im talking about something completely different, you never explain right :(
The problem is that I copied the GetAltTabList() function from somewhere and i don't know how it works, so i can't modify it sadly
If you manage to find in google a function that returns a list of windows of ALL desktops, tell me and I add it(looks possible because in the configuration of alt tab you can choose between make alt tab show the windows of the current desktop or make it show the windows of all desktops)
The function then would look like: GetAltTabList("from_all_desktops")
or GetAltTabList("from_this_desktop")
and it will give you one list or another depending on the parameter
Once you have that list you can do:
someKey::ActivateLastWindowRegardingTheDesktop()
ActivateLastWindowRegardingTheDesktop(){
all_windows := GetAltTabList("from_all_desktops")
the_last_window_focused := all_windows[1]
the_desktop_where_the_last_focused_window_is := InWichDesktopThisWindowIs(the_last_window_focused)
GoToDesktop(the_desktop_where_the_last_focused_window_is)
}
oh man, that actually looks so convenient