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

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