Author: heresy Last Modified: 20080620
Run AHK scripts with less (half or even less) memory usage.
Omit parameter to reduce scriptself's mem usage else put target's PID.
EmptyMem()
For the functions's parameters and return value, please see it's source code.
Required Win32NT
The Truth about Windows Memory Optimizers:
o http://www.bitsum.com/winmemboost.htm
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=32876
nonexistent
; #Include EmptyMem.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% ;This example will reduce mem usage from around 5,000k to 500k Run, taskmgr.exe MsgBox, Remember current memory usage then compare. EmptyMem() Sleep, 5000 Exitapp