如何让我的 Pocket PC 保持开机状态直到我的申请完成?
我有一个应用程序,可以向用户显示大约 15 分钟的持续状态。我想做的是让设备在这段时间内不会断电(因为 wifi 断开并且状态停止:()
我认为系统能够优雅地执行此操作,因为我可以观看整集Dilbert(22 分钟),无需触摸我的屏幕 同时,当它结束时,系统将进入“睡眠”状态(
如果您愿意的话,至少在几分钟后保持活动状态)。
I've got an application that presents the user with ongoing status for roughly 15 minutes. What I want to do is make it so the unit will not power off during this time (because the wifi goes down and the status stops :( )
I'd assume the system is capable of doing this gracefully because I can watch a whole episode of Dilbert (22min) without having to touch my screen. At the same time, when the its over, the system goes to "sleep" (at least after a few min).
Keep alive if you please.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
另一种选择是经常按一个虚拟“键”:
keybd_event(VK_F24, 0, KEYEVENTF_KEYUP, 0);
这将被应用程序忽略,并防止您的设备超时/挂起。
磅
Another option is to press a virtual "key" every so often:
keybd_event(VK_F24, 0, KEYEVENTF_KEYUP, 0);
This will be ignored by applications and it will keep your device from timing out / suspending.
L.B.