Autoxics Posted May 22, 2006 Share Posted May 22, 2006 I dont get it,no mather what i try i dont seam to be able to close all open windows without getting the Turn off computer message displayd how do you guys do it, i suppose there has to be away , but i have not found one, Ive used WinClose("") and with a few wildcards but No can do. If anyone has a good way to do this, please let me know! Link to comment Share on other sites More sharing options...
Valuater Posted May 22, 2006 Share Posted May 22, 2006 search help for processclose 8) Link to comment Share on other sites More sharing options...
Autoxics Posted May 22, 2006 Author Share Posted May 22, 2006 (edited) That only closes a process if i know the name, and it wont close folder windows , allso i would like to have it close in its default way, with the option to save unsaved work before i close it, for windows titles that has that option when closing them manualy Edited May 22, 2006 by Autoxics Link to comment Share on other sites More sharing options...
Helge Posted May 22, 2006 Share Posted May 22, 2006 First you need to get is the list of windows. This can be done with WinList(),which then returns an array with handles for both visible and hidden windows.This array you use in For/Next-loop, where you search for visible windows usingWinGetState(). The visible windows you find in the loop you close using WinClose()together with the handle.That's it. Link to comment Share on other sites More sharing options...
slightly_abnormal Posted May 22, 2006 Share Posted May 22, 2006 check out autoitkings close em up! scritp Link to comment Share on other sites More sharing options...
Autoxics Posted May 22, 2006 Author Share Posted May 22, 2006 (edited) thank you all of you guys! i will try the suggestions you all gave me out! Edited May 22, 2006 by Autoxics 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