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

    Status: Open => Answered

RaiMan proposed the following answer:
With my situation (Win 7, FF 3.6) when using this e.g. (you might test
it with FF 3.6 instead of 4.0 beta)

ffLoc = r'C:\Program Files\Mozilla Firefox\firefox.exe'
ffTitle = "Mozilla Firefox"
ffApp = App(ffTitle) # app object "containing" all FF windows
if not ffApp.window():
    App(ffLoc).focus() # opens FF
ffApp.focus()

only one window is opened if FF is started. No new window is opened, if
FF is running (visible or not). Even if the FF window(s) are minimized,
no new window is opened (known problem - window stays minimized).

If it is a stable;-) behaviour, just fire a type(Key.F4, KEY_ALT) to get
rid of the second window.

Tip: try to put short wait(x) between the actions, with x between 0.3
and 1.0 - this sometimes helps.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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