;QuicKill ;easy way to kill ;listing ;set working directory------------------- SetWorkingDir %A_ScriptDir% ;process set---------- Process Priority,,High ;make it run on high priority SetBatchLines, -1 ; fastest script run #SingleInstance ignore ;allow only single instance of script MsgBox, 0, QuicKill 0.1.1 Introduction, QuicKill is a tiny application wich help you to shutdown, logoff, and restart Windows quickly using hotkeys and tray menu. QuicKill will place icon in system tray where you can access all the function of this application. Open readme.txt to read detailed description. ;tray tip----------- TrayTip , I'm Here, QuicKlill tray icon are here, 5, 1 ;-----------------------------;-----------------------------; ;--------------------------menu-----------------------------; ;-----------------------------;-----------------------------; #Persistent Menu, Tray, NoStandard Menu, tray, add, Shutdown, shutdown Menu, tray, add, Restart, restart Menu, tray, add, Logoff, logoff Menu, tray, add Menu, tray, add, Forced Shutdown, fshutdown Menu, tray, add, Forced Restart, frestart Menu, tray, add Menu, tray, add, Help, help Menu, tray, add, Visit my blog, visit Menu, tray, add Menu, tray, add, Exit, exit return ;-----------------------------;-----------------------------; ;--------------------------hotkeys---------------------------; ;-----------------------------;-----------------------------; ;shutdown #q:: critical Gosub, shutdown return ;---------------------------------------------- ;restart #s:: critical Gosub, restart return ;---------------------------------------------- ;Logoff #l:: critical Gosub, logoff return ;---------------------------------------------- ;forced shutdown #f:: critical Gosub, fshutdown return ;---------------------------------------------- ;forced restart #w:: critical Gosub, frestart return ;---------------------------------------------- ;help:: #h:: critical Gosub, help return ;---------------------------------------------- ;exit:: #x:: critical Gosub, exit ;------------------------- ;Sub list----------------- ;------------------------- shutdown: MsgBox, 4, Shutdown, Really want to shutdown? IfMsgBox No return else shutdown, 9 return ;---------------------------------------------- restart: MsgBox, 4, Restart, Really want to restart? IfMsgBox No return else shutdown, 2 return ;---------------------------------------------- logoff: MsgBox, 4, Logoff, Really want to Logoff? IfMsgBox No return else shutdown, 0 return ;---------------------------------------------- fshutdown: MsgBox, 4, Forced Shutdown, Really want to force shutdown? All progress will be lost. Please save all your progress. IfMsgBox No return else shutdown, 5 return ;---------------------------------------------- frestart: MsgBox, 4, Forced Restart, Really want to force restart? All progress will be lost. Please save all your progress. IfMsgBox No return else shutdown, 6 return ;---------------------------------------------- help: Run %A_WorkingDir%\readme.txt return ;---------------------------------------------- ;visit visit: IfWinExist, Firefox { WinActivate send, !FT Run,http://www.tinybigbang.googlepages.com } else { Run,http://www.tinybigbang.googlepages.com } Return ;------------------------------------------------ exit: MsgBox, 4, Close Application, Really want to exit? IfMsgBox No return else MsgBox, 0, Ads, Visit tinybigbang.googlepages.com for updates and other usefull aplications. ExitApp ;----------------------------------------------