If I understand correctly you're trying to close 'popups' that appear from another application, right? In that case you'll need to import some windows dll's (winapi) (I think you'll need the user32.dll, but I'm not sure) that expose the Windows functions like FindWindows, GetDlgText, etc... With those functions you'll need to: 1: Find the correct window (probably need a loop that will redo this every x seconds) 2: if window is open (= encountered in step 1), press the button (Yes, No, OK, Cancel) I don't know the exact function for this, but it exists. avoid closing or killing the msgbox, instead try to let the msgbox handle itself by using one of the closing buttons. You'll have to find the correct functions and signatures on MSDN, but there is a lot of info out there about this topic.
V.
Stop smoking so you can: Enjoy longer the money you save. Moviereview Archive