V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
xurunfei
V2EX  ›  Python

Python pyautogui hotkey 问题

  •  
  •   xurunfei · Jul 25, 2020 · 1748 views
    This topic created in 2114 days ago, the information mentioned may be changed or developed.

    按照文档上 pyautogui 快捷键代码为 pyautogui.hotkey('command', 'r') 但是不知道为何我的电脑上 command 没有点击,只执行了 r变为了输出文本,目前处理方式为,手动模拟快捷键

     for arg in args:
            pyautogui.keyDown(arg)
    
        for arg in args:
            pyautogui.keyUp(arg)
    
    

    但是很多时候有快捷键无效的情况

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3130 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 03:15 · PVG 11:15 · LAX 20:15 · JFK 23:15
    ♥ Do have faith in what you're doing.