1个回答
展开全部
大漠的注册与绑定:
PutAttachment "G:\ch","dm.dll"
PutAttachment ".\Plugin" ,"RegDll.dll"
Call Plugin.RegDll.Reg("G:\ch\dm.dll")
set dm = createobject("dm.dmsoft")
MessageBox dm.Ver()
dm.SetPath "G:\ch"
hwnd = dm.GetMousePointWindow()
dm_ret = dm.BindWindow(hwnd, "dx", "dx", "dx", 0)
后台找图:
dm_ret =
dm.FindPic(0,0,2000,2000,"1.bmp|2.bmp|3.bmp","000000",0.9,0,intX,intY)
If
intX >= 0 and intY >= 0 Then
MessageBox "找到"
End If
后台找色:
dm_ret = dm.FindColor(0,0,2000,2000,"123456-000000|aabbcc-030303|ddeeff-202020",1.0,0,intX,intY)
If
intX >= 0 and intY >=
0 Then
MessageBox "找到"
End If
后台单击左键:
dm.LeftClick
获取类名:
class_name = dm.GetWindowClass(hwnd)
标题获取:
title = dm.GetWindowTitle(hwnd)
PutAttachment "G:\ch","dm.dll"
PutAttachment ".\Plugin" ,"RegDll.dll"
Call Plugin.RegDll.Reg("G:\ch\dm.dll")
set dm = createobject("dm.dmsoft")
MessageBox dm.Ver()
dm.SetPath "G:\ch"
hwnd = dm.GetMousePointWindow()
dm_ret = dm.BindWindow(hwnd, "dx", "dx", "dx", 0)
后台找图:
dm_ret =
dm.FindPic(0,0,2000,2000,"1.bmp|2.bmp|3.bmp","000000",0.9,0,intX,intY)
If
intX >= 0 and intY >= 0 Then
MessageBox "找到"
End If
后台找色:
dm_ret = dm.FindColor(0,0,2000,2000,"123456-000000|aabbcc-030303|ddeeff-202020",1.0,0,intX,intY)
If
intX >= 0 and intY >=
0 Then
MessageBox "找到"
End If
后台单击左键:
dm.LeftClick
获取类名:
class_name = dm.GetWindowClass(hwnd)
标题获取:
title = dm.GetWindowTitle(hwnd)
更多追问追答
追问
这后台里怎么没有句柄,
还有我的意思是用类名或标题获取句柄。
谢谢
追答
hwnd = dm.GetMousePointWindow()
这句话就是句柄
AiPPT
2024-09-19 广告
2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图...
点击进入详情页
本回答由AiPPT提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询