I need to activate windows which have dynamic names.
The names vary second by second and are not static the xyz and abc middle parts keeps changing but the start and end of the window name is static
eg.
window 1 name="test xyz blue"
window 2 name="test abc black"
so if I want to activate window 1 I need some sort of wildcard match like
act(win("test WILDCARD blue"))
I cannot use act(win("test")) as this may activate window 2 and I prefer not to use
int a=win("test xyz blue")
act a
Can I activate a window using a string name with a wildcard in the middle - if so how please?
The names vary second by second and are not static the xyz and abc middle parts keeps changing but the start and end of the window name is static
eg.
window 1 name="test xyz blue"
window 2 name="test abc black"
so if I want to activate window 1 I need some sort of wildcard match like
act(win("test WILDCARD blue"))
I cannot use act(win("test")) as this may activate window 2 and I prefer not to use
int a=win("test xyz blue")
act a
Can I activate a window using a string name with a wildcard in the middle - if so how please?