# EmptyMem()

作者: heresy 最近更新时间: 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()

关于函数的参数和返回值, 请参阅其源码.

#### 备注

Required Win32NT
The Truth about Windows Memory Optimizers:
o http://www.bitsum.com/winmemboost.htm

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=32876

#### 许可

不存在

#### 示例

    ; #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