interceptorv8 Posted November 24, 2007 Posted November 24, 2007 Can someone tell me how can I close a window when I do not know the window name?. something like Alt+F4 to close the active window in that moment. please. Thank you.
Zedna Posted November 24, 2007 Posted November 24, 2007 WinClose("[ACTIVE]") Resources UDF ResourcesEx UDF AutoIt Forum Search
Developers Jos Posted November 24, 2007 Developers Posted November 24, 2007 Did you try: WinClose("") ? Should close the window that has the focus. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
interceptorv8 Posted November 24, 2007 Author Posted November 24, 2007 @zedna, Winclose("[ACTIVE]") it doesn´t work. I have seen in some scripts the command send("^c") this is Ctrl+c how can I send Alt+F4 ? thank you for your quick reply.
interceptorv8 Posted November 24, 2007 Author Posted November 24, 2007 @Jos , winclose("") it work, thanks you.
Zedna Posted November 24, 2007 Posted November 24, 2007 @zedna, Winclose("[ACTIVE]") it doesn´t work. I have seen in some scripts the command send("^c") this is Ctrl+c how can I send Alt+F4 ? thank you for your quick reply. you need Opt("WinTitleMatchMode", 4) Resources UDF ResourcesEx UDF AutoIt Forum Search
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