View Single Post
Old 16th January 2019, 04:20   #6
Sopwith
Junior Member
 
Join Date: Jan 2019
Posts: 4
Sorry, one adjustment to the script here... The DllCall basically tells the Win7 kernel that, on shutdown, end this script first when you start your process-exiting. This is important because on my machine WinAmp was holding everything up - and without the script ending, it doesn't trigger my OnExit command, so WinAmp doesn't close...

Quote:
#Persistent
DllCall("kernel32.dll\SetProcessShutdownParameters", UInt, 0x4FF, UInt, 0)
OnExit("ShutdownWinAmp")
return

ShutdownWinAmp()
{
Process, Close, winamp.exe
}
return
(Once again: this is a script for AutoHotkey. Download, install, make this an .AHK file, and run it on start-up {make a shortcut in your Start>Programs>Startup folder})

And there was much rejoicing.
Sopwith is offline   Reply With Quote