Jump to content

Recommended Posts

Posted

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!

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
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...