Alright, I modified the above script to solve a minor bug, and I made it more generic in terms of the displayed message : #include <Timers.au3> #include <FileConstants.au3> Global Const $IDLE_MINUTES = 1, $TIME_WAITING = 10, $TIME_DESC = Not Mod ($TIME_WAITING, 60) ? "Minutes" : "Seconds" Global Const $sProductFilePath = @WindowsDir Global Const $sProductFileName = "Notepad.exe" Global Const $sProductName = FileGetVersion($sProductFilePath &