Comment 1 for bug 682281

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: switchapp problem handing multiple instances of applications in Windows

--- I confirm, that this really happens ( uuhps - does not happen ;-)

I tested on Win7 with IE and only the first window opened on the first run, but never again. switchApp() always returns 0, which means that the window was found.

--- I successfully tested the following workaround:
# window title of a minimized window contains "some text"
switchApp("some text"); wait(1); type(" ", KEY_ALT); type("x")

This opens the minimized Window to fullscreen.

--- general comment
in Windows the app when using switchApp() is identified by inspecting the window title. So generally it is recommended to use some contained text, that uniquely identifies the window