Created
December 20, 2013 05:15
-
-
Save mubix/8050653 to your computer and use it in GitHub Desktop.
Uses the "CloseWindow" API call to minimize all of the windows.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
windows = client.extapi.window.enumerate | |
windows.each do |winder| | |
result = client.railgun.user32.CloseWindow(winder[:handle]) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can cause a few problems for users...
but if you're not keen on destroying, you can minimise, which makes the desktop pretty unusable.