Sign in to follow this  
Followers 0
Autoxics

Close all open Windows without the Turn Off Computer message?

6 posts in this topic

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!

Share this post


Link to post
Share on other sites



search help for processclose

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by Autoxics

Share this post


Link to post
Share on other sites

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 using

WinGetState(). The visible windows you find in the loop you close using WinClose()

together with the handle.

That's it.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

thank you all of you guys!

i will try the suggestions you all gave me out!

Edited by Autoxics

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