SwitchApp Not Working At All?

Asked by Dan

SwitchApp seems to not be working at all on my machine. I have tried multiple strings, substrings, and wildcards with no success.

Here are a few examples:
switchApp("Firefox")
switchApp("Mozilla")
switchApp("*Outlook*")

I am able to use switchApp with the whole string, for example switchApp("C:\Program Files\Internet Explorer\IEXPLORE.EXE") works, but I'd like to be able to switch based on the window title.

Any help will be appreciated. Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Dan
Solved:
Last query:
Last reply:

This question was originally filed as bug #526603.

Revision history for this message
Dan (dhannig) said :
#1

Killed my company's security agent.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

as reported with question https://answers.launchpad.net/sikuli/+question/102131 I found that with existing windows at least on my Win7 and a windows XP it works as explained there.

Just another example:

start notepad and you have a window with "Unbenannt - Editor" (sorry, for german, but strings are strings are strings ;-).
switchApp("unben")
switchApp("benannt")
switchApp("editor")
all bring the editor window to front.

So it leaves you with the situation, to get your app started.