Skip to content

Commit 960da1a

Browse files
committed
Examples: Filter all windows to find windows on all virtual desktops
Since AHK v1.1.32.0, cloaked windows are treated as hidden. This also makes windows on other virtual desktops treated as hidden.
1 parent 8d2bdaa commit 960da1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/switch_between_app_windows.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def switch_between_app_windows():
2424
process_name = active_win.process_name
2525
app_windows = [
2626
win
27-
for win in ahk.windows.filter(exe=process_name)
27+
# Filter all windows to find windows on all virtual desktops.
28+
for win in ahk.all_windows.filter(exe=process_name)
2829
if is_alt_tab_window(win)
2930
]
3031
if len(app_windows) < 2:

0 commit comments

Comments
 (0)