TC官方合作论坛

 找回密码
 立即注册
查看: 601|回复: 5
打印 上一主题 下一主题

[问题] 提示窗口的句柄值不能为空 怎么解决

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-2 23:58:47 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

马上加入TC

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
namespace mthreader
int  thre_hand
bool isstop
function int thre_moth()
    //while(true)
    //help.messagebox("this is a threader!!")
    //help.sleep(1000)
  //endwhile
  string ret=system.enum("Notepad",1)//类名枚举
     string[] str_hand=string[1]
     bool isok=str.split(ret,"|",str_hand)
  int c1,i=0
array.size(str_hand,c1)
while(i<c1)
    mthreader.send_window(str_hand)
    i=i+1
endwhile
return 0
endfunction
function int send_window(string str_han2)//向窗口发送信息
    string ret=system.enum("str_han2",3)//父窗口枚举子窗口
    string[] str_hand=string[1]
  bool isok=str.split(ret,"|",str_hand)
  int c1,i=0,hander
array.size(str_hand,c1)
while(i<c1)
     if(window.getwindowtype(convert.strtoint(str_hand,0))=="Edit")
         hander=convert.strtoint(str_hand)
         break
     endif
     i=i+1
endwhile
window.postkeypress(hander,13)
window.sendstring(hander,"hello Tc!!"+convert.inttostr(hander))
window.postkeypress(hander,13)
    return 0
endfunction
function bool start_click()
thre_hand=thread.beginthread("mthreader.thre_moth","")

return true

endfunction

function bool exit_click()

help.exit()

return true
endfunction


function bool stop_wheth_click()
if(!isstop)
     thread.suspendthread(thre_hand)
     isstop=true
else
     thread.resumethread(thre_hand)
    isstop=false
endif

return true
endfunction


function bool closser_click()

thread.closethread(thre_hand)
return true
endfunction

endnamespace
回复

使用道具 举报

6#
 楼主| 发表于 2012-12-3 14:10:59 | 只看该作者
我那个r  终于解决了
回复 支持 反对

使用道具 举报

5#
 楼主| 发表于 2012-12-3 11:40:37 | 只看该作者
没人  指点一下呢
回复 支持 反对

使用道具 举报

地板
发表于 2012-12-3 11:40:10 | 只看该作者
回复 3楼sendmails2me的帖子

怎么个好可爱法?
顶啊,
这个就可爱了?
回复 支持 反对

使用道具 举报

板凳
发表于 2012-12-3 10:04:29 | 只看该作者
回复 2楼TC管理员的帖子

管理员好可爱哦~
回复 支持 反对

使用道具 举报

沙发
发表于 2012-12-3 10:03:16 | 只看该作者
顶啊
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /2 下一条

关闭

小黑屋|TC官方合作论坛 (苏ICP备18043773号

GMT+8, 2025-10-8 17:48 , Processed in 0.152650 second(s), 25 queries .

Powered by 海安天坑软件科技有限公司

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表