program builder 0 Posted August 14, 2010 ;here is my script winwaitactive(StringInStr,".jpg") MsgBox(4096, "Bessie:", "Just tell me your name in one word") ;I am trying to get it to send messages when it sees that it is ;Opening a jpg file. What is wrong with my code? Share this post Link to post Share on other sites
smashly 12 Posted August 14, 2010 Hi,$hWnd = WinWaitActive("[REGEXPTITLE:\.jpg]") MsgBox(64, "Window Detected", 'Dectected a window with ".jpg" in the title.' & @LF & _ "Window Handle: " & $hWnd & @LF & _ "Window Title: " & WinGetTitle($hWnd), 0, $hWnd) Cheers Share this post Link to post Share on other sites