in reply to Win32::CtrlGui::wait_for_window is only partially working
use Win32::CtrlGUI
line seems to fix it.
Without the semicolon, I got an error on the send_keys line. With it, everything worked.