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
yth492300648
V2EX  ›  Python

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

  •  
  •   yth492300648 · 2020-02-20 16:26:32 +08:00 · 3153 次点击
    这是一个创建于 1524 天前的主题,其中的信息可能已经有所发展或是发生改变。
    其实就是一个滑块验证吗~~~对大佬来说应该很简单
    可是实在是头疼,不知道怎么解决,CSDN 破解滑块验证码实在是看不懂
    现在有两个思路:一个是 selenium 模拟拖动,百度了半天找不到怎么定义坐标
    另一个就是有没有类似按键精灵的库,直接拖动鼠标解决
    9 条回复    2020-02-20 20:46:54 +08:00
    MoYi123
        1
    MoYi123  
       2020-02-20 16:41:03 +08:00
    pyhook 但是记得好像 python3 上有点问题
    flycn1985
        2
    flycn1985  
       2020-02-20 16:42:35 +08:00
    python 可以调用大漠的
    ysc3839
        3
    ysc3839  
       2020-02-20 16:46:05 +08:00
    Windows 的话可以用 SendInput。
    wuwukai007
        4
    wuwukai007  
       2020-02-20 16:50:00 +08:00
    pip install pyautogui
    RealMadrid
        5
    RealMadrid  
       2020-02-20 18:44:52 +08:00
    Linux 的话可以用 xdotool
    RealMadrid
        6
    RealMadrid  
       2020-02-20 18:45:55 +08:00
    @RealMadrid 抱歉,没看清楚,xdotool 不符合
    doraemon1293
        7
    doraemon1293  
       2020-02-20 19:02:42 +08:00
    pyautogui
    SlipStupig
        8
    SlipStupig  
       2020-02-20 19:26:51 +08:00
    selenium ActionChains 可以实现, 看这里:

    https://www.jianshu.com/p/42f79c1592ae
    greatx
        9
    greatx  
       2020-02-20 20:46:54 +08:00
    pyautogui 挺简单的,容易上手
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5349 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 07:31 · PVG 15:31 · LAX 00:31 · JFK 03:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.