推荐学习书目
› 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
yth492300648
V2EX  ›  Python

问一下 Python 有没有类似按键精灵的库可以拖动鼠标到指定位置

  •  
  •   yth492300648 · Feb 20, 2020 · 4775 views
    This topic created in 2449 days ago, the information mentioned may be changed or developed.
    其实就是一个滑块验证吗~~~对大佬来说应该很简单
    可是实在是头疼,不知道怎么解决,CSDN 破解滑块验证码实在是看不懂
    现在有两个思路:一个是 selenium 模拟拖动,百度了半天找不到怎么定义坐标
    另一个就是有没有类似按键精灵的库,直接拖动鼠标解决
    9 replies  •  2020-02-20 20:46:54 +08:00
    MoYi123
    MoYi123
    Feb 20, 2020
    1
    pyhook 但是记得好像 python3 上有点问题
    flycn1985
    flycn1985
    Feb 20, 2020
    2
    python 可以调用大漠的
    ysc3839
    ysc3839
    Feb 20, 2020
    3
    Windows 的话可以用 SendInput。
    wuwukai007
    wuwukai007
    Feb 20, 2020
    4
    pip install pyautogui
    RealMadrid
    RealMadrid
    Feb 20, 2020
    5
    Linux 的话可以用 xdotool
    RealMadrid
    RealMadrid
    Feb 20, 2020
    6
    @RealMadrid 抱歉,没看清楚,xdotool 不符合
    doraemon1293
    doraemon1293
    Feb 20, 2020
    7
    pyautogui
    SlipStupig
    SlipStupig
    Feb 20, 2020
    8
    selenium ActionChains 可以实现, 看这里:

    https://www.jianshu.com/p/42f79c1592ae
    greatx
    greatx
    Feb 20, 2020
    9
    pyautogui 挺简单的,容易上手
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4863 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 05:57 · PVG 13:57 · LAX 21:57 · JFK 00:57
    ♥ Do have faith in what you're doing.