use Win32::GUI; $smartboardHandle = Win32::GUI::FindWindow("TMainform", "");