Some Ideas >>
http://www.autohotkey.com/forum/topic53543.html Or
http://www.sevenforums.com/customization/40297-can-copy-path-enabled-permanently-without-shift-2.html. As I have mentioned before I have no expertise in AutoHotKey, but I did some research (searched for AutoHotKey - EmptyWorkingSet) and I think the example in AutoHotKey will help you to reduce the Memory usage of the running application! And it's safe as it's using the Windows API
AutoHotKeyCode:
_EmptyWorkingSet() ; http://www.sevenforums.com/customization/40297-can-copy-path-enabled-permanently-without-shift-2.html
{
Return DllCall("psapi.dll\EmptyWorkingSet", "UInt", -1)
}
My Example taken and modified from the
AutoIt Forums.
_ReduceMemory() ; Call the Function to reduce the Memory usage of the current Process. Or ...
_ReduceMemory("Opera.exe") To reduce the Memory usage of Opera! (if running)
Code:
Func _ReduceMemory($rm_PID = -1)
If $rm_PID <> -1 Then
Local $rm_Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $rm_PID)
Local $rm_Return = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', $rm_Handle[0])
DllCall('kernel32.dll', 'int', 'CloseHandle', 'int', $rm_Handle[0])
Else
$rm_Return = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', -1)
EndIf
Return $rm_Return[0]
EndFunc ;==>_ReduceMemory