推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
ffdezz
V2EX  ›  Python

如何获取笔电的盖子是否合上的信息?

  •  
  •   ffdezz · Jun 29, 2015 · 1957 views
    This topic created in 4036 days ago, the information mentioned may be changed or developed.
    想写一个开机自启的脚本,作用是监测到合上盖子后自动把电源计划切换成“节能”,监测到打开盖子自动把电源计划切换成“高性能”。目前只知道切换电源计划的CMD的powercfg命令来实现,却怎么也搜索不出怎么得知笔电盖子的状态,也许是我关键词用得不好吧,论坛里有知道的请不吝赐教,谢谢。
    ffdezz
        1
    ffdezz  
    OP
       Jun 29, 2015   ❤️ 1
    经过一番辛苦地谷歌,甚至还谷歌到了这个帖子,现在已经了解到是用WM POWERBROADCAST了,继续学习
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   976 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:14 · PVG 03:14 · LAX 12:14 · JFK 15:14
    ♥ Do have faith in what you're doing.