推荐学习书目
› 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 · 2037 views
    This topic created in 2256 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   ·   Privacy   ·   Solana   ·   1101 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:15 · PVG 07:15 · LAX 16:15 · JFK 19:15
    ♥ Do have faith in what you're doing.