- May 6, 2011
- 8,172
- 137
- 106
This computer has been irritating me for a while now. Its been running for almost 4 years. 3 years with windows 7. It used to be fairly reliable in the way it slept and resumed. Now, ever since I installed a M4 SSD, it rarely goes to sleep by itself. It still does sleep, but most of the time I see it does not.
I've gotten to the point where I'm just sick of how unreliable sleep is with windows, and have accepted the fact that it will never not ever work properly. So I've decided to write my own routine so I will have something that I know will work.
All I need my routine to do is check to see if the mouse hasnt been moved and no keys have been pressed for 10 minutes.
Here is the autohotkey code which does this check:
If it is truly idle then as a final check I need to somehow tell if there is any video playing, because that could be a possibility. That's kind of where I'm stuck at the moment. Since microsoft is trash I figured somebody somewhere must have dealt properly with this issue. So how do I tell if there is a video playing?
I've gotten to the point where I'm just sick of how unreliable sleep is with windows, and have accepted the fact that it will never not ever work properly. So I've decided to write my own routine so I will have something that I know will work.
All I need my routine to do is check to see if the mouse hasnt been moved and no keys have been pressed for 10 minutes.
Here is the autohotkey code which does this check:
Code:
#Persistent
Settimer, Idle, 5000
return
idle:
if A_TimeIdlePhysical > 600000
MsgBox, idle
Else
return
If it is truly idle then as a final check I need to somehow tell if there is any video playing, because that could be a possibility. That's kind of where I'm stuck at the moment. Since microsoft is trash I figured somebody somewhere must have dealt properly with this issue. So how do I tell if there is a video playing?
Last edited:
