← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #184357]: Help needed is usage of SwitchApp

 

Question #184357 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/184357

    Status: Open => Answered

RaiMan proposed the following answer:
On Windows, if you want to switch to an already opened app, you have to
use a unique part of the windows title text, you want to switch too.

in your case  "D://Putty.exe" is not part of any open window's title
text, so Putty is opened again.

If e.g. "Putty" is in the window title:
switchApp("Putty")

might do it, if only one Putty window is open at that time. Otherwise
you have to take more text from the window title, to make it more
distinguishable.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.