开发者

How do i wake a computer from being in sleep mode? in Vb 2008 expr edition

开发者 https://www.devze.com 2022-12-15 03:54 出处:网络
I\'m trying to make an开发者_如何学编程 alarm clock.When the computer is in sleep mode, when the alarm is triggered i want the computer to wake up and play the alarm.Can tell me how to do this in vb 2

I'm trying to make an开发者_如何学编程 alarm clock. When the computer is in sleep mode, when the alarm is triggered i want the computer to wake up and play the alarm. Can tell me how to do this in vb 2008.


Have a look here to see if this fits your needs? This article explains how to wake up a computer from standby or hibernation.

Hope this helps, Best regards, Tom.


As far as I know, this cannot be done. "Sleep mode" (ACPI S3) is a hardware power state, and software instructions are not executed while a computer is in the S3 state. To wake the machine, you will have to schedule an interrupt from the hardware's Real-Time Clock; not all RTCs support waking the machine from S3 via interrupts, so this may be completely impossible on your machine. Even if your RTC is capable of doing this, it does not appear that Visual Basic provides an appropriate interface to the hardware; you will probably require a lower-level language (C or even assembly) to access these features.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号