interceptorv8 Posted November 24, 2007 Share 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. Link to comment Share on other sites More sharing options...
Zedna Posted November 24, 2007 Share Posted November 24, 2007 WinClose("[ACTIVE]") Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Developers Jos Posted November 24, 2007 Developers Share 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. Link to comment Share on other sites More sharing options...
interceptorv8 Posted November 24, 2007 Author Share 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. Link to comment Share on other sites More sharing options...
interceptorv8 Posted November 24, 2007 Author Share Posted November 24, 2007 @Jos , winclose("") it work, thanks you. Link to comment Share on other sites More sharing options...
Zedna Posted November 24, 2007 Share 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 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