switchApp in Windows syntax

Asked by TimG

Is it possible to use wildcard identifiers to allow switchApp to switch to partial application window name (the first part of the application name is always the same but the last parts vary). This is in Windows XP.

For example, want to use:

switchApp("Test name -"*)

to switch to "Test name - Feb 23-10" windows

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

Just tested on Windows 7:

it seems to be true, that any text that appears in the window title (even case insensitive) is sufficient, to get an EXISTING app window into foreground.

e.g. a Firefox Window is titeled:

Die PEP Company - Beratung und Training - Mozilla Firefox

strings to get the window in front:
PEP
beratung
Mozilla Firefox
firefox

Revision history for this message
TimG (tbgallant) said :
#2

Thanks RaiMan, that solved my question.