I have this code in a larger program: $ProgramName="test123" Global $TopWin = GUICreate($ProgramName, ....) Global $Handle = WinGetHandle($ProgramName) Dim $v_dll = "Kernel32.dll" DllCall($v_dll, 'int', 'SetProcessWorkingSetSize', 'hwnd', $Handle, -1, -1 ) I then compile the script to a .exe This should reduce the memory footprint of the running AutoIt-Compiled process, but it does not. I am not familiar with DllCall, but suspect that $Handle is not right. Here is the info on the SetProces