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

Keep monitor on setting + bug fix #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

mosoto
Copy link

@mosoto mosoto commented Aug 29, 2015

  1. I added a setting so you can choose whether you want caffeinated to keep just the system awake or whether you care about keeping the monitor awake too
  2. There was a bug in using "Stay awake for" in the conext menu. If you use it multiple times it overwrites the oldState that is used to deactivate caffeine. Thus you can never again deactivate it without exiting the program.

mosoto added 2 commits August 29, 2015 13:47
…e original state thus preventing caffeine from ever being disabled except by exiting the program
NativeMethods.ES_SYSTEM_REQUIRED;

if (Settings.Default.KeepMonitorOn)
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: Please follow the existing style that has no newline before braces

@GibStorm
Copy link

Would it be possible to get a build of the new version?

@sergiopjf
Copy link

I maked a build of the new version with good changes made by the mosoto.

Download attached file.
Caffeinated-1.1.zip

@PowerScissor
Copy link

I know this is very old, but after using caffeinated on all my computers for years, it does not work on my new Acer Predator gaming laptop. I came accross this GitHub with the above Caffeinated 1.1, downloaded, and was going to try it out to see if it will work where the 1.0 does not. When trying to run it, Windows Defender prevents it from running, saying it is a "risk". Should I be fine to run it anyway? I downloaded it directly from the "Caffeinated-1.1.zip" file above...not sure why this doesn't run, but original does. Sorry if the answer is super obvious, I'm not a coder and only created this GitHub account to ask this question.

@PowerScissor
Copy link

I'm sorry if I broke GitHub etiquette by posting this type of comment here. I just want to post that this version worked for me! I went ahead and ignored the Windows Defender warning and ran the exe anyway, and finally after weeks of frustration I have a working version of caffeinated. Hope this helps anyone else who ends up here with the same issue I was having. And thanks to both the original creator and the person responsible for this fix.

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

Successfully merging this pull request may close these issues.

5 participants