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

新手入门中,请教各位一个关于 Ghost.py 的问题

  •  2
     
  •   mgna17 · 2015-12-21 17:50:24 +08:00 · 2516 次点击
    这是一个创建于 3050 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Ghost.py 有没有模拟鼠标滑轮滚动或者网页向下翻页的功能呢?如何用呢?
    今天拿百度文库做实验,发现其中的文档是会在网页下翻的时候动态加载的,于是产生如上的想法。
    望各位前辈不吝赐教。
    7 条回复    2015-12-21 19:14:19 +08:00
    fasling
        1
    fasling  
       2015-12-21 17:54:36 +08:00
    pywin32
    自己加模块呗
    mgna17
        2
    mgna17  
    OP
       2015-12-21 17:58:04 +08:00
    @fasling 为什么是加 pywin32
    fasling
        3
    fasling  
       2015-12-21 18:00:24 +08:00
    哦,如果是在 windows 上,模拟鼠标键盘消息就用 pywin32.
    如果是别的系统,我就不知道了.
    mgna17
        4
    mgna17  
    OP
       2015-12-21 18:04:57 +08:00
    @fasling 呃,我指的是在 Ghost.py 这个库里面有没有这个功能。您指的是 Ghost.py 可以调用其它库的功能来模拟鼠标滚动么?
    fasling
        5
    fasling  
       2015-12-21 18:12:59 +08:00
    @mgna17 应该是可以的.
    zingl
        6
    zingl  
       2015-12-21 18:36:05 +08:00
    ghost.py 文档不足,可以看 issue 里的例子,有 scroll
    mgna17
        7
    mgna17  
    OP
       2015-12-21 19:14:19 +08:00
    @zingl 谢谢指点,这对我很有帮助
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   924 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:31 · PVG 06:31 · LAX 15:31 · JFK 18:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.