|
6#

楼主 |
发表于 2012-5-30 12:47:52
|
只看该作者
回复 4楼TC的帖子
代码很简单就是一些测试的代码
namespace writeToQQ
//定义默认空间
function bool start_click()
//这里添加你要执行的代码
//string mbString = edit.gettext("edit0")
// string content = edit.gettext("edit1")
//if(str.strcompare(mbString,"")==0)
// help.messagebox("请输入内容")
// return false
//endif
int winID
winID = window.findwindow("QQ2012")
if(winID==0)
help.messagebox("没有找到窗口")
else
window.setwindowtop(winID,true)
window.leftclick(winID,44,180)
//window.sendstring(winID,content)
//window.postkeypress(winID,13)
endif
return true
//函数返回语句
endfunction
function bool exit_click()
//这里添加你要执行的代码
help.exit()
return true
//函数返回语句
endfunction
endnamespace
//空间结束语句
我现在贴不了图 得下班回家后才能上图,但是就是很常见的关闭,弹出一个窗口说他正在关闭什么的 |
|