TC官方合作论坛

 找回密码
 立即注册
楼主: 江中游

【安卓】第2果 变量与常量_打开程序

  [复制链接]
发表于 2015-6-6 17:43:12 | 显示全部楼层
安卓】第2果 变量与常量_打开程序 [修
回复 支持 反对

使用道具 举报

发表于 2015-6-10 23:47:13 | 显示全部楼层
看看是什么
回复 支持 反对

使用道具 举报

发表于 2015-6-11 01:23:46 | 显示全部楼层

namespace winme
DM=com("dm.dmsoft")
function start_click()
list.deleteall("list0")
hwnd,a,id,x,b,i
xy,yy
i=0
x=#01005361
hwnd=window.findwindow("扫雷")
id=combo.getcursel("ComboBox0")
if(id==0)
     a=9
     b=9
endif
if(id==1)
     a=16
     b=16
endif
if(id==2)
     a=30
     b=16
endif
if(id==3)
     a=convert.strtoint(edit.gettext("edit0"),0)
     b=convert.strtoint(edit.gettext("edit1"),0)
endif
while(i<b)
     xy=DM.ReadData(hwnd,str.format("%x",x),a)
     yy=str.replace(str.replace(str.replace(str.replace(str.replace(str.replace(str.replace(str.replace(str.replace(str.replace(str.replace(xy,"8F","雷"),"41","无"),"42","无"),"43","无"),"44","无"),"45","无"),"46","无"),"47","无"),"48","无"),"49","无"),"0F","无")
     list.addstring("list0",yy)
     x=x+#20
     i=i+1
endwhile
return true
endfunction
function exit_click()
help.exit()
return true
endfunction
function button0_click()
help.confirmationbox("选择正确的模式,开局点击任意一个开始计时后,扫描雷区,自定义模式选手动输入宽,高。","扫雷助手",1,true)
return true
endfunction

function init()
combo.setcursel("ComboBox0",0)
control.show("edit0",false)
control.show("edit1",false)
control.show("Static10",false)
control.show("Static11",false)
return true
endfunction
function timer0_ontime()
id
id=combo.getcursel("ComboBox0")
if(id==3)
     control.show("edit0",true)
     control.show("edit1",true)
     control.show("Static10",true)
     control.show("Static11",true)
else
     control.show("edit0",false)
     control.show("edit1",false)
     control.show("Static10",false)
     control.show("Static11",false)
endif
return true
endfunction
endnamespace





回复 支持 反对

使用道具 举报

发表于 2015-6-14 19:30:02 | 显示全部楼层
1111111111111111
回复 支持 反对

使用道具 举报

发表于 2015-6-15 21:46:10 | 显示全部楼层
看看
回复

使用道具 举报

发表于 2015-6-17 08:59:08 | 显示全部楼层
学习一下
回复

使用道具 举报

发表于 2015-6-18 14:43:00 | 显示全部楼层
第2果 变量与常量_打开程序
回复 支持 反对

使用道具 举报

发表于 2015-6-20 17:08:59 | 显示全部楼层
课针对TC的安卓方向的变量与常量进行一次详细讲述,实战例程为打开某程序。
观看地址:
回复 支持 反对

使用道具 举报

发表于 2015-6-22 18:23:36 | 显示全部楼层

看看看看
回复

使用道具 举报

发表于 2015-6-23 09:23:56 | 显示全部楼层
江中游老师幸苦了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条

关闭

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

GMT+8, 2024-5-14 22:19 , Processed in 0.043721 second(s), 19 queries .

Powered by 海安简单软件服务部

© 2008-2019 版权所有 保留所有权利

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