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

    Status: Open => Answered

RaiMan proposed the following answer:
This is a SikuliX implementation problem on Windows:
- for App.open() you need a name that is found on system path as executable or 
a path to the executable (as in your case)
- for App.focus() you need the Window title of the window to bring to front or 
at least a significant part of it 

When using a path, the window title usually is not the same.

solution:

    new App(path).waitForWindow();
    String title = "some title";
    App pub = new App(title);
    pub.focus();

or even shorter:

    new App(path).waitForWindow();
    App.focus("some title");

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to