简体   繁体   中英

How to Make Application to Wake Computer From Sleep

I know several alarm clock programs already do this for your computer. I also know you can do this in task scheduler manually.

I want to write a Java, C++, C#, or Python program to do this. I just don't know where to begin and am struggling to find decent resources. Any guidance would be greatly appreciated.

Try using java Robot.

The Robot class simulates user interaction with the computer. I know for a fact that it will prevent a computer from locking/going to sleep.

Try to set the Thread.sleep() to the amount of time you want the computer to sleep/wake up.

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM