Caffeine++ is a free, open-source console application written in C++ that can prevent the system from entering the power-saving mode. Basically, it prevents the screen from turning off and your computer from going to sleep. This application was developed as a command-line alternative to Linux caffeine on Windows.
Caffeine++ supports command-line arguments with the following options:
arguments:
-m, -start-minimised start with the window minimized
-t time, -timer runs for a specific time in seconds
-i, -hide-console hide cmd
-k, -simulate-keypress Simulate key process in the console
- Hide console can be used if you want to "start the program as a service" by placing a shortcut in the startup folder in Windows.
- Simulate keypress is an option used simply as graphic animation and nothing more
> caffeine++.exe -t 3600
> caffeine++.exe -t 3600 -i
> caffeine++.exe -k
The command line arguments can be used in the command prompt but also as parameters in the shortcut.
- create a shortcut pointing to the executable file
- open the shortcut’s Properties window
- in the shortcut tab, add your parameters to the target field
You can download the latest release from here!
caffeine++ just like any other C++ application needs microsoft visual c++ redistributables to run. You can download latest x86 package from here.
GNU GENERAL PUBLIC LICENSE (Version 3, 29 June 2007)
Copyright (c) 2019 Harris Arvanitis
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.