目前艺赛旗RPA已经更新到8.0版本,可以让所有用户免费下载试用http://www.i-search.com.cn/index.html?from=line1 (复制链接下载)
有同学在项目上碰到这样一种验证码:
这种验证码需要鼠标滑动加上文字识别,接下来我们就用 8.0 版本实现一下此功能。
首先看一下解锁步骤全流程:
接下来我们分别讲解一下里面的关键步骤
第一步 解决鼠标滑动
这一步我是用代码实现,点击固定的坐标滑动解锁。
from ctypes import *
from ctypes.wintypes import *
def imouse_drag(x1, y1, x2, y2,button=‘left’,speed=10):
try:
dll = windll.LoadLibrary("…/Com.Isearch.Func.AutoIt/AutoItX3.dll")
return dll.AU3_MouseClickDrag(button,x1,y1,x2,y2,speed)
except Exception as e:
raise e<