博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mouse click with ctypes.windll and win32api
阅读量:6916 次
发布时间:2019-06-27

本文共 383 字,大约阅读时间需要 1 分钟。

import win32apifrom ctypes import windlldef click(x, y, button=1, n=1):    for i in range(n):        flag_press = 2 ** ((2 * button) - 1)        flag_release = 2 ** (2 * button)        windll.user32.SetCursorPos(x, y)        win32api.mouse_event(flag_press, x, y)        win32api.mouse_event(flag_release, x, y)click(1558,1066, 2)

转载于:https://www.cnblogs.com/otfsenter/p/7484352.html

你可能感兴趣的文章
同步域内时间方法二:PDC主机作为时间源
查看>>
ecshop文章侧边栏导航,自动调用文章多级栏目分类并且当前栏目及父栏目高亮显示...
查看>>
我的友情链接
查看>>
Myeclipse9 struts2 ${nextAction}动态结果配置报错问题
查看>>
网站打不开的几种原因
查看>>
第二个Java程序 applet 菜单乱码
查看>>
我的友情链接
查看>>
Topology and Geometry in OpenCascade-Adapters
查看>>
CCNP路由-19 BGP路径属性详解(下)
查看>>
python面试题
查看>>
Linux安装Python
查看>>
【MySQL】语法简介
查看>>
自动化运维之系统安装部署
查看>>
第8章4节《MonkeyRunner源码剖析》MonkeyRunner启动运行过程-启动 7
查看>>
Memcached构建缓存加速集群部署
查看>>
sed命令
查看>>
System and Device Programming------device
查看>>
suse11.2版本部署分布式测试机
查看>>
搭建rtmp直播流服务之2:使用java实现ffmpeg命令接口化调用(用java执行ffmpeg命令)...
查看>>
linux服务器出现大量TIME_WAIT的解决方法
查看>>