Lists windows and according to your preferences, waits for a window or process to close, and then shuts down the computer.
For anyone who doesn't have the download window,
in "about:config", set "browser.download.manager.useWindow" to "true".
I wonder if there is a possibility to do this in Autoit ? I've to make sure that my application is closed properly to prevent crahses / errors
in VB.NET I was able to do it by :
AddHandler Microsoft.Win32.SystemEvents.SessionEnding, AddressOf myfunctions_end_mywork
I found an old example here : but its not working
This will shutdown the pc whenever the download speed goes under the specified nº of KB/s.
Should you find any issues, please report to me.
If your like me and you have shown people windows 8 & 8.1 only to be asked "So how do you shut it down..?", I got sick of telling (and trying to get them to move the cursor to the bottom right corning, click the cog, then power and then shutdown, so i wrote a simple little app that can sit on the desktop and/or the win8 tiles menu, and it just gives a similar shutdown box to the like of WinXP, with a combo of options.
Anyway I'd thought I'd share it with everyone
Please see this post
I've started try to code this but I'm having trouble with the DLL syntax and I'd like to be sure that the system is safe to power down before I force it to do so.
$iReturnValue = DllCall("advapi32.dll", "int", "RegFlushKey", "long", "HKEY_CLASSES_ROOT") if @error Then MsgBox(0, "", "Fail!") MsgBox(0, "Flush Home Key Classes Root", $iReturnValue) $bReturnValue = DllCall("kernel32.dll", "BOOL", "FlushFileBuffers", "HANDLE", "\\.\" & @HomeDrive) if @error Then MsgBox(0, "", "Fail!") MsgBox(0, "Flush System Drive Cache", $iReturnValue);Should return 1=true or 0=false.
But I can't determine if these functions are working correctly. Any help is greatly appreciated like always.