Jump to content
Sign in to follow this  

Winwait And Untitled Pop-up Window

Recommended Posts

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".

Share this post

Link to post
Share on other sites

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 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.

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...