Set computer to go to sleep with timer
Posted: Tue Dec 04, 2018 9:26 pm
The first thing you will need when using this card is NirCmd. This some simple free software that allows for a load more commands that we want.
The download link at the bottom of the page. This page also contains a list of command if you ever want to do anything more with it.
http://nircmd.nirsoft.net/
Once downloaded unzip/extract the files to wherever you want. Preferable somewhere you can access easily enough. On my machine, I just made a folder and named it 'Push2RunStuff'.
Sleep without timer:
This card works by calling the nircmd.exe file and running the standby command to put the computer to sleep/standby. You will have to edit the card to point to the right directory but other than that should just work.
Sleep with a timer
This card will put your computer into a standby mode after a set amount of minutes defined by you eg: "Hey Google tell my computer to go to sleep after 20"
This card requires a little set up in you have to make a .bat file to run the command as you need to convert the number of minutes you give it into milliseconds for the 'cmdwait' command to use. To do this create a text file and paste the code below into the same folder as the 'nircmd.exe' file and rename the text file to 'sleepMinutes.bat' so it saves as a bat file that can be run.
set /a Milli= %1 * 60000
nircmd cmdwait %Milli% standby
After this should just be pointing the card to the correct directory to wherever you saved it same as previously and should all work.
Hope you all enjoy and any problems or think I missed a step leave a comment and I'll do what I can
The download link at the bottom of the page. This page also contains a list of command if you ever want to do anything more with it.
http://nircmd.nirsoft.net/
Once downloaded unzip/extract the files to wherever you want. Preferable somewhere you can access easily enough. On my machine, I just made a folder and named it 'Push2RunStuff'.
Sleep without timer:
This card works by calling the nircmd.exe file and running the standby command to put the computer to sleep/standby. You will have to edit the card to point to the right directory but other than that should just work.
Sleep with a timer
This card will put your computer into a standby mode after a set amount of minutes defined by you eg: "Hey Google tell my computer to go to sleep after 20"
This card requires a little set up in you have to make a .bat file to run the command as you need to convert the number of minutes you give it into milliseconds for the 'cmdwait' command to use. To do this create a text file and paste the code below into the same folder as the 'nircmd.exe' file and rename the text file to 'sleepMinutes.bat' so it saves as a bat file that can be run.
set /a Milli= %1 * 60000
nircmd cmdwait %Milli% standby
After this should just be pointing the card to the correct directory to wherever you saved it same as previously and should all work.
Hope you all enjoy and any problems or think I missed a step leave a comment and I'll do what I can