|
空间 移植
//默认空间
dm=com("dm.dmsoft")//Set dm = createobject("dm.dmsoft")
function 绑定()
dm.SetPath(辅助.获取资源路径("rc:"))
dm.SetDict(0,"字库.txt") //dm.SetPath("c:\")
Hwnd=dm.GetMousePointWindow()
是否成功=dm.BindWindow(Hwnd, "dx2", "windows", "windows", 0)
help.sleep(1500) //Delay 1500
if(是否成功==0) //If dm_rect = 0 Then
help.messagebox("后台绑定失败")//MessageBox "后台绑定失败"
//EndScript
else
移植.找图()
endif
endfunction
function 找图()
while(true)
x,y
dm.FindPic(0,0,2000,2000,"1.bmp|2.bmp|3.bmp","000000",0.9,0,x,y)
if(x>0)
help.sleep(50)
dm.KeyPress(112) //dm.KeyPressChar "F1"
endif
help.sleep(50)
dm.FindPic(0,0,2000,2000,"1.bmp|2.bmp|3.bmp","000000",0.9,0,x,y)
if(x>0)
help.sleep(50)
dm.KeyPress(112) //dm.KeyPressChar "F2"
endif
dm.FindPic(0,0,2000,2000,"1.bmp|2.bmp|3.bmp","000000",0.9,0,x,y)
if(x>0)
help.sleep(50)
dm.KeyPress(57) //dm.KeyPressChar "9"
endif
endwhile
dm.UnBindWindow()
endfunction
//开始按钮_点击操作
功能 开始_点击()
thread.beginthread("移植.绑定","")
功能结束
//退出按钮_点击操作
功能 退出_点击()
辅助.退出()
功能结束
空间结束
//空间结束语句
能帮你的是这么多了,
While True
dm.KeyPressChar "9"
Delay 5
i = 99999999
While i > 0
dm.KeyPressChar "U"
Delay 5
dm.KeyPressChar "1"
Delay 5
这部份看不明 |
|