1
votes

I made a program that hooks global mouse event and uses layered window style.

However, my program prevents Windows from automatically sleeping. What would be some general reasons that program prevents Windows from sleeping (Except using functions dedicated for prevent sleeping.)?

What would be some ways I can stop my program from preventing windows to get into sleep mode?

1
powercfg -requests seems a reasonable thing to peruse before anything else. - WhozCraig
Without seeing a minimal reproducible example demonstrating the issue in action, there is no way for anyone here to diagnose your problem. - Remy Lebeau

1 Answers

-3
votes

it's similar to how when you watch a long movie on your computer it doesn't turn off on you. the computer is running a program, so... its active and doing something.