misrepresentative Posted December 9, 2016 Share Posted December 9, 2016 I recently found out that you could close Explorer gracefully. Steps (on my Win 7 system) : 1. Click on start menu button, 2. At "Shutdown" do Ctrl+Shift+ Right-click Mouse Button. There's option to exit Explorer. My question is if it's possible to trigger it in a more direct manner without : ControlClick, Send, Hotkeys, MouseClick. Thank you. Link to comment Share on other sites More sharing options...
misrepresentative Posted December 9, 2016 Author Share Posted December 9, 2016 (edited) Found out after some search. Hope it helps. #include <SendMessage.au3> Local $hWnd = WinGetHandle ( "[CLASS:Shell_TrayWnd]" ) Local $iMsg = 0x5B4 _SendMessage ( $hWnd, $iMsg ) Edited December 9, 2016 by misrepresentative variable name edit Link to comment Share on other sites More sharing options...
jguinch Posted December 9, 2016 Share Posted December 9, 2016 ProcessClose(WinGetProcess ( "[CLASS:Shell_TrayWnd]" )) misrepresentative 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
misrepresentative Posted December 9, 2016 Author Share Posted December 9, 2016 Thanks, jguinch. I'm not sure if that method does a graceful close. Triying to avoid ProcessClose as well. 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