TC官方合作论坛
标题:
又是语法错误,在论坛上网上也找了语法错误的帖来看,但是还是没有发现我的语法错在哪里,真心求教
[打印本页]
作者:
justaplayer
时间:
2012-8-5 04:28
标题:
又是语法错误,在论坛上网上也找了语法错误的帖来看,但是还是没有发现我的语法错在哪里,真心求教
情况是这样的 刚开始我一一检查了标点符号 接着检查了大漠函数名的大小写 每个函数的参数个数我也数了一遍 都没有错
第一个出错的是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
//空间结束语句
复制代码
作者:
justaplayer
时间:
2012-8-5 04:30
我先去睡个觉吧````来不起了
作者:
陌上青衣。
时间:
2012-8-5 06:40
用COM工具手动,把你资源的大漠再注册下
#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)))
dm.KeyPress(9)
dm.FindPic(0,0,width,height,"xuetiao.bmp","1e1a1c-ff0f0f|804543-ff0f0f|a39674-0ff0f0|4d4431-ff0f0f",1,0,X,Y)
endwhile
dm.KeyPress(112)
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
//空间结束语句
复制代码
作者:
justaplayer
时间:
2012-8-5 09:40
谢谢 成功了
欢迎光临 TC官方合作论坛 (http://bbs.52tc.co/)
Powered by Discuz! X3.1