This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loop { | |
app = firefox.exe | |
; firefox keep consumes up your memory. sometimes rebooting is good | |
mem := GetProcessMemoryInfo(app) | |
Menu, tray, tip, %app% %mem% KB | |
; if memory is consumed more than 1G ask to user and restart | |
if mem > 1000000 | |
{ | |
MsgBox, Okay, it's time to restart your firefox. Click OK to reboot firefox. |