#import "dm.dmsoft" dm
namespace xinhaizei
//定义默认空间
function bool start_click()
//这里添加你要执行的代码
int hwnd = dm.FindWindow("KOP","新Online: 3.4.0.14.51")
//string path=help.getrcpath("rc:")
//dm.SetPath(path)
//string zikupath=path+"dm_soft.txt"
//dm.SetDict(0,zikupath)
if(hwnd>0)
//dm.BindWindow(hwnd,"dx","dx","dx",0)
dm.SetWindowState(hwnd,12)
int threadid=0
threadid=thread.beginthread("xinhaizei.threadfunction",convert.inttostr(threadid))
endif
return true
//函数返回语句
endfunction
function int threadfunction(string hwnd)
//bool bl=true
int intX,intY
while(true)
dm.FindColor(0,0,1024,768,"eb79bf-000000",1.0,0,intX,intY)
if(intX>0 && intY>0)
dm.MoveTo(intX,intY)
help.sleep(500)
dm.LeftClick()
help.sleep(500)
dm.KeyDown(113)
help.sleep(500)
dm.KeyUp(113)
endif
dm.FindColor(0,0,1024,768,"8af6fa-000000",1.0,0,intX,intY)
if(intX>0 && intY>0)
dm.MoveTo(intX,intY)
help.sleep(500)
dm.LeftClick()
help.sleep(500)
dm.KeyDown(113)
help.sleep(500)
dm.KeyUp(113)
endif
endwhile
//while(bl)
////thread.closethread(convert.strtoint(hwnd))
//endwhile
return 0
endfunction
function bool exit_click()
//这里添加你要执行的代码
help.exit()
return true
//函数返回语句
endfunction
function bool jiebang()
//这里添加你要执行的代码
dm.UnBindWindow()
return true
endfunction
function bool init()
//这里添加你要执行的代码
bool ret =help.regdll("rc:dm.dll",true)
if(!ret)
help.messagebox("插件注册失败")
endif
return true
endfunction
endnamespace
//空间结束语句
我都发上来,你在给看看 |