in reply to Win32::GuiTest Get Window Focus

If you want to know the active window, have you tried Win32::GuiTest::GetActiveWindow(0)? This should be fairly equivalent to GetFocus(0), but I haven't tried either.