Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: automatic memory clean via command line parameter #82

Closed
Ne0niq opened this issue Jul 16, 2019 · 7 comments
Closed

Feature request: automatic memory clean via command line parameter #82

Ne0niq opened this issue Jul 16, 2019 · 7 comments
Labels

Comments

@Ne0niq
Copy link

Ne0niq commented Jul 16, 2019

Hi, Henrypp!!
First of all, thank you very much for your creation! Very useful!

Can you please implement a small feature - ability to start memory clean procedure for memreduct.exe from the command line? For example "memreduct.exe -clean" or something else.

Reason/usablity situation:
I am using CMD-script which is killing regular resident programs (browser, download manager, etc) and disabling the network before running a game, and after the game was closed my script returning resident programs.

I know about the memory cleaning hotkey, but I hope you agree that in this specific scenario its better to have a command line parameter for memreduct.exe which will work no matter the program is already running or not.

Cheers!

@moxuanyuan
Copy link

I have the same need because I want to perform a series of automated actions

@matttcooke
Copy link

matttcooke commented May 20, 2020

+1

...with the option to also exit on completion!

@593172440
Copy link

+1

@Ne0niq
Copy link
Author

Ne0niq commented Nov 1, 2021

Hi, there! For those, who still wants to have some trigger to clean RAM without UI, here is a workaround somewhat replacing missing commandline parameter for memreduct:
I made simple AutoIt script, which launches Memreduct.exe sends a hotkey CTRL+F6 globally, which can be used by memreduct.
How the dscript works:
first, you only need to set mentioned hotkey to "Clean Memory" in memreduct settings;
target derectory is "c:\Program Files\Memreduct";
when you run memreduct-clean-memory.exe it launches memreduct, sends a hotkey CTRL+F6 and closes memreduct after 5 sec.

Source + compiled .exe (gdrive)
Feel free to change the hotkey in .au3 cource and recompile it. I included MS keycodes text file for convenience.

Cheers!

@whoisrishi
Copy link

Hi, there! For those, who still wants to have some trigger to clean RAM without UI, here is a workaround somewhat replacing missing commandline parameter for memreduct: I made simple AutoIt script, which launches Memreduct.exe sends a hotkey CTRL+F6 globally, which can be used by memreduct. How the dscript works: first, you only need to set mentioned hotkey to "Clean Memory" in memreduct settings; target derectory is "c:\Program Files\Memreduct"; when you run memreduct-clean-memory.exe it launches memreduct, sends a hotkey CTRL+F6 and closes memreduct after 5 sec.

Source + compiled .exe (gdrive) Feel free to change the hotkey in .au3 cource and recompile it. I included MS keycodes text file for convenience.

Cheers!

Check This Before Downloading
https://www.virustotal.com/gui/file/acc78ad8a8c5c89295d29e104a5c02a23ce6bb32622e000673fd6e32ecffcd50/detection

@ripton06
Copy link

+1

@Ne0niq
Copy link
Author

Ne0niq commented Aug 7, 2022

Check This Before Downloading https://www.virustotal.com/gui/file/acc78ad8a8c5c89295d29e104a5c02a23ce6bb32622e000673fd6e32ecffcd50/detection

Hi. All AutoIt! scripts being false detected by many antivirus software. It's normal situation here. So, please, don't rush and read my initial message more carefully. I said, that my attachment contains the source code. So why would I publish virus source code?... Ridiculous, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants