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++
caffeine++

View on GitHub

Command Line Arguments

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

Examples

Run the app for an hour

> caffeine++.exe -t 3600

Run the app for an hour and hide the command window

> caffeine++.exe -t 3600 -i

Run the app infinitely and Simulate keypress

> caffeine++.exe -k

Command Line Arguments in Shortcut

The command line arguments can be used in the command prompt but also as parameters in the shortcut.

Examples

  • 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

shortcut-parameters-eg.1
shortcut-parameters-eg.1

shortcut-parameters-eg.2
shortcut-parameters-eg.2

Download

You can download the latest release from here!

Requirements

caffeine++ just like any other c++ application needs microsoft visual c++ redistributables to run. You can download latest x86 package from here.

License

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/.