Sign in to follow this  
Followers 0
JustDoIt

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

5 posts in this topic

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

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

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

#4 ·  Posted (edited)

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

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  
Followers 0