attached to the post i've linked to are 2 zips. in the server one you'll find the au3 skript. another alternative: http://forums.gbpvr.com/showthread.php?t=25751 has the original script i modified for my needs on the first post
attached to the post i've linked to are 2 zips. in the server one you'll find the au3 skript. another alternative: http://forums.gbpvr.com/showthread.php?t=25751 has the original script i modified for my needs on the first post
Hi, Slimm. After all the trouble you've gone to, I'm sorry it took so long to test this. I have now run a few tests, and as far as I can tell the app never produces errorlevel 1. I created a batch file that simply runs it and reports the errorlevel, and also set that batch file to wake up the computer as a scheduled task: always errorlevel 0.
Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.
My apologies! I must not have had .NET installed on my laptop. I thought that I did.
With .NET installed, the tiny app works as described (though unreliably, as you predicted). I will use it to determine whether my PC came out of "sleep" automatically, but will also do a secondary check of whether there are 2 minutes or less left before a scheduled recording, and whether it is time for an EPG update.
Thanks for your programming services!
Having tested Slimm's tiny app (attached to the original post) for some time now, I am finding that it is actually quite reliable (provided .NET is installed). In all these weeks it has only twice detected a "false manual" resume, and never detected a "false automatic" resume. I recommend this to anyone who wishes to detect, from a batch file, whether their system came on by itself. Thanks again, Slimm!
Just discovered that this tells you what woke the computer up.
Code:powercfg -lastwake
Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.
Hmm...not available on my copy of XP. From the help file:
Examples:
POWERCFG /LIST
POWERCFG /QUERY scheme
POWERCFG /QUERY
POWERCFG /CREATE scheme
POWERCFG /DELETE scheme
POWERCFG /SETACTIVE scheme
POWERCFG /CHANGE scheme /monitor-timeout-dc 15
POWERCFG /CHANGE scheme /monitor-timeout-dc 0
POWERCFG /HIBERNATE on
POWERCFG /EXPORT scheme /file file
POWERCFG /QUERY number /NUMERICAL
POWERCFG /GLOBALPOWERFLAG on /OPTION BATTERYICON
POWERCFG /AVAILABLESLEEPSTATES
POWERCFG /BATTERYALARM low
POWERCFG /BATTERYALARM critical /ACTIVATE on /LEVEL 6 /ACTION hibernate
POWERCFG /DEVICEQUERY wake_armed
POWERCFG /DEVICEENABLEWAKE "Microsoft USB IntelliMouse Explorer"
After all this time, though, I should reinforce that your IsSystemResumeAutomatic tinapp never fails me. Combining that with GBPVRCLI to watch for recordings, the commandline standby options with SlimmGBPVR, and a daily automatic restart, and my system automation is sweet indeed.
An odd development: After a year of faithful service, the tinyapp will no longer detect an automatic system resume. It seems to return an error level of 0 regardless of how the system awakes. This happened suddenly; one day it was "always right," and the next day, "always wrong." I can only conclude that a Windows Update has rooted me.
Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.