; ; Author: jgpaiva ; ; Script Function: ; logs off the current user after the defined time ; #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. if 0 <> 2 { msgbox, please pass the number of seconds to logoff and the message as a parameter!! exitapp } time = %1% message = %2% settimer,showmessage,-1 time := time * 1000 sleep,%time% shutdown,0 return showmessage: msgbox,64,information,%message%,30 return