InputBox, UserInput, Browser Timer, How many minutes would you like to wait before exiting your browser? If ErrorLevel Exit Script Sleep UserInput * 1000 * 60 MsgBox, 4,Time Expired,Your time has expired. Do you want to close your browser? IfMsgBox, No Exit Script If ProcessExist "firefox.exe" Process, Close, firefox.exe Loop { Process,Close,firefox.exe if !ErrorLevel break } If ProcessExist "iexplore.exe" Loop { Process,Close,iexplore.exe if !ErrorLevel break } If ProcessExist "Opera.exe" Process, Close, Opera.exe Loop { Process,Close,Opera.exe if !ErrorLevel break }