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

如何解决程序对模拟鼠标操作的禁止

  •  
  •   echaos · Jan 26, 2018 · 5223 views
    This topic created in 3055 days ago, the information mentioned may be changed or developed.

    拿 python 写了个 LOL 自动进入, 发现直接调用 win32api.SetCursorPos 无效 又尝试了下 ctypes.windll.user32.SetCursorPos 当然也没什么用 请教各位 dala python 下还有什么方法能模拟鼠标操作 并突破程序的限制

    8 replies    2018-02-07 14:19:44 +08:00
    Mogugugugu
        1
    Mogugugugu  
       Jan 26, 2018
    这个不是那么容易的吧,企鹅家有全套解决方案,在手机上面尝试过模拟点击农药,结果每次的点击的位置都是随机的 0 0
    imdong
        2
    imdong  
       Jan 26, 2018
    你这个可能要试下驱动级的键鼠模拟了,而且游戏的鼠标位置是有偏移的。

    当然,LOL 这类的游戏对于键鼠实时性比较高,可能他们自己也是驱动级的。
    no1xsyzy
        3
    no1xsyzy  
       Jan 26, 2018
    游戏大多开了 raw input,winAPI 没法用吧
    python 下有点强人所难,但应该可以虚拟硬件
    echaos
        4
    echaos  
    OP
       Jan 26, 2018 via Android
    @no1xsyzy 有哪里的教程可以学习吗
    x86vk
        5
    x86vk  
       Jan 26, 2018 via Android
    linux 下直接写 uinput 应该就行,不知道 windows 下怎么办
    abcbuzhiming
        6
    abcbuzhiming  
       Jan 27, 2018
    别想了,凡是能禁止你的都是驱动级的,想解决也简单,自己学会驱动,调试内核,找到那个驱动,绕过去,这几个步骤每一个都不容易,第一步尤其难,这年头有几个人愿意去学驱动的
    iwtbauh
        7
    iwtbauh  
       Jan 27, 2018 via Android
    可以考虑利用 badusb 攻击的原理
    no1xsyzy
        8
    no1xsyzy  
       Feb 7, 2018
    @echaos Windows 下应该是不存在的(完全主观臆测,希望打脸)
    如果 Wine 能跑 LOL 的话应该有戏
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1209 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 17:37 · PVG 01:37 · LAX 10:37 · JFK 13:37
    ♥ Do have faith in what you're doing.