If TimerDiff($i_Timer) > 5000 Then Return SetError(2) Expand collapse popup #include #include _Restart _Windows _Explorer ( ) ConsoleWrite ( "+ Result: " & & ) Func _Restart _Windows _Explorer ( ) By KaFu Believed to save icon positions just before Shutting down explorer, which comes next _WinAPI _ShellChangeNotify ( $SHCNE_ASSOCCHANGED, 0, 0, 0 ) Shutting down explorer gracefully Local $hSysTray_Handle = DllCall ( "user32.dll", "HWND", "FindWindow", "str", "Shell_TrayWnd", "str", "" ) If Not IsHWnd ( $hSysTray_Handle ) Then Return SetError ( 1 ) Local $iPID_Old = WinGetProcess ( $hSysTray_Handle ) _SendMessage ( $hSysTray_Handle, 0x5B4, 0, 0 ) #cs
0 Comments
Leave a Reply. |