Butthead Posted March 30, 2006 Share Posted March 30, 2006 When uninstalling an app, a pop-up box comes up saying "uninstallation complete". This has no title. I would like to close this pop-up with autoit Using something like: Winwait ("","uninstallation complete",10) This doesn't appear to be working. Is this the correct way to do this? Is this something you cannot do without a title? When checking with the Auto Window info tool, the title is blank and the text has the "OK" and goes to the next line and has the words "uninstallation complete". Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 30, 2006 Moderators Share Posted March 30, 2006 (edited) Maybe try this to get the actual title:Opt('WinSearchChildren', 1) $UninstallTitle = WinGetTitle('');assuming that the window is active MsgBox(0, 'Uninstall Title', $UninstallTitle) If the buttons have control id's and the window has a class (use AutoInfo.exe tool). If Window has a Class (right under title with AutoInfo)(Replace ClassTitle with the Class: Opt('WinTitleMatchMode', 4) If WinExists('classname=ClassTitle') Then WinKill('classname=ClassTitle') If the window has a control id for the buttons (again using AutoInfo): If ControlCommand('', 'Text of Button', 'Control ID or ClassNameNN', 'IsVisible', '') Then ControlClick('', 'Text of Button', 'Control ID or ClassNameNN')I'm not sure this one would work... Edit: Fixed Code Tag Edited March 30, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now