Skip to content

Caffeine++, a command line alternative of (linux) caffeine on windows

License

Notifications You must be signed in to change notification settings

XarisA/CaffeinePP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

caffeine++

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

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

248456477-12e0f4c6-00a7-46a4-adbd-931ca2d35897

248456472-9a19b8ce-350b-434d-a977-d644e0821b4d

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

About

Caffeine++, a command line alternative of (linux) caffeine on windows

Resources

License

Stars

Watchers

Forks

Packages

No packages published