V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
bokey
V2EX  ›  Python

为什么 pyautogui.click 在有些窗口里不生效

  •  
  •   bokey · 2023-04-09 10:32:46 +08:00 · 1069 次点击
    这是一个创建于 383 天前的主题,其中的信息可能已经有所发展或是发生改变。

    python 初学者,我写了一段代码使用图片比对然后获取屏幕的位置 用的 pyautogui.click ,我用 qq 音乐测试可以生效,但是在游戏窗口里,鼠标能正确移动到位置,点击效果就不生效

    2 条回复    2023-04-09 11:32:35 +08:00
    Hider
        1
    Hider  
       2023-04-09 10:53:03 +08:00
    试试用管理员方式打开终端
    bokey
        2
    bokey  
    OP
       2023-04-09 11:32:35 +08:00
    @Hider 还真行,谢谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2894 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:31 · PVG 19:31 · LAX 04:31 · JFK 07:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.