|
马上加入TC
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
情况是这样的 刚开始我一一检查了标点符号 接着检查了大漠函数名的大小写 每个函数的参数个数我也数了一遍 都没有错
第一个出错的是help.messagebox(dm.Ver()) 错误信息是(())是错误的实参数列表
后来我发现 只要是遇到大漠的地方就会报类似上面那样的错 大漠插件我是放到资源文件夹里的 然后还有一张bmp图 跪求高人指点
- #import "dm.dmsoft" dm
- namespace tiantang
- //定义默认空间
- function bool start_click()
- //这里添加你要执行的代码
- int ret,width,height,X,Y,hwnd
- hwnd=window.getmousemovewndhand()
- window.getwindowsize(hwnd,width,height)
- help.messagebox(convert.inttostr(width)+"×"+convert.inttostr(height))
- //help.messagebox(dm.Ver())
- //ret=dm.BindWindow(hwnd,"Normal","Normal","Normal",0)
- if(ret==1)
- while((!(X>0)) || (!(Y>0)))
- //keypress(9,1)
- //dm.FindPic(0,0,width,height,"xuetiao.bmp","1e1a1c-ff0f0f|804543-ff0f0f|a39674-0ff0f0|4d4431-ff0f0f",1,0,X,Y)
- endwhile
- //keypress(112,1)
- help.messagebox("ok")
- else
- help.messagebox("创建窗口失败")
- endif
- return true
- endfunction
- function bool init()
- //这里添加你要执行的代码
- bool ret
- help.regdll(help.getrcpath("rc:dm.dll"),true)
- ret=help.isregister("dm.dmsoft")
- if(ret)
- //dm.SetPath(help.getrcpath("rc:"))
- endif
- return true
- endfunction
- function bool hotkey0_onhotkey()
- //这里添加你要执行的代码
- tiantang.start_click()
- return true
- endfunction
- function bool exit_click()
- //这里添加你要执行的代码
- help.exit()
- return true
- //函数返回语句
- endfunction
- endnamespace
- //空间结束语句
复制代码
|
|