Jump to content
Sign in to follow this  
JustDoIt

Function to click on the "X" to close out an active screen

Recommended Posts

JustDoIt

Can someone give me a hint on what function use to click on the "X" to close out an active screen ? Thanks.

Share this post


Link to post
Share on other sites
jvanegmond

Can someone give me a hint on what function use to click on the "X" to close out an active screen ? Thanks.

Send("!{F4}") would be easier.

Share this post


Link to post
Share on other sites
JustDoIt

Send("!{F4}") would be easier.

The little screen I am dealing with is a "registration" nagging screen (of an application on its trial period) which cannot be closed by Alt-F4. Only way to kill that nagging screen is to click on "X" on very top right corner. No other way around.

Share this post


Link to post
Share on other sites
jvanegmond

Hmm.. in that case, maybe try this:

Opt("WinTitleMatchMode", 4)
WinClose("active")

You can also just get the absolute coordinates with AutoIt Window Information and use those.

Edited by Manadar

Share this post


Link to post
Share on other sites
JustDoIt

Hmm.. in that case, maybe try this:

Opt("WinTitleMatchMode", 4)
WinClose("active")
it didn't work for me.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.