02-22-2016, 04:53 PM
can be
win "part of window name without file name" "YYY" "ZZZ" 0 "" a
or
win "" "YYY" "ZZZ" 0 "" a ;;no window name, just class and/or program
To get ALL windows, better use GetMainWindows a, because win ... would also get taskbar, desktop and maybe some other unwanted windows.
Macro for testing what window gets GetMainWindows or win:
Macro Macro2696
win "part of window name without file name" "YYY" "ZZZ" 0 "" a
or
win "" "YYY" "ZZZ" 0 "" a ;;no window name, just class and/or program
To get ALL windows, better use GetMainWindows a, because win ... would also get taskbar, desktop and maybe some other unwanted windows.
Macro for testing what window gets GetMainWindows or win:
Macro Macro2696