in reply to Win32::GuiTest Get Window Focus

A windows, which is not visible, cannot have focus -- you will have to minimize all other visible windows, minus any belonging to the taskbar -- there is an API call for that

Replies are listed 'Best First'.
Re^2: Win32::GuiTest Get Window Focus
by Anonymous Monk on Mar 10, 2011 at 10:51 UTC
Re^2: Win32::GuiTest Get Window Focus
by SuicideJunkie (Vicar) on Mar 10, 2011 at 14:20 UTC

    That's not entirely true.

    I've seen at least two poorly written programs, in which a modal dialog box ends up with the focus, but is behind another window.

    You can't move the obscuring window because the dialog has to be dealt with first, and you can't complete the dialog because the window is in the way...