Snooper界面脚本与常规版脚本互动
来源:互联网 发布:seo推广工资多少 编辑:程序博客网 时间:2024/05/02 01:49
先编译界面脚本,内容如下,存储为 界面脚本.txt,并用snooper的界面脚本窗口打开
static 提示控件001 = "KI" position = 0% width = 100% height = 1
crlf
edit inputKI filename = "inputki" position = 0% width = 100% height = 1
crlf
static 提示控件003 = "KI 15位" position = 0% width = 100% height = 1
crlf
edit inputKI15 filename = "inputki15" position = 0% width = 100% height = 1
crlf
static 提示控件002 = "IMSI" position = 0% width = 100% height = 1
crlf
edit inputIMSI filename = "inputimsi" position = 0% width = 100% height = 1
crlf
static 提示控件004 = "ICCID" position = 0% width = 100% height = 1
crlf
edit inputICCID filename = "inputiccid" position = 0% width = 100% height = 1
crlf
// 声明一个按钮,其基本属性与static相同
button 发行CDMA测试卡 = "发行CDMA测试卡-Milenge算法" position = 20 % width = 60% height = 1
crlf
button 擦除测试卡cos = "擦除测试卡cos" position = 20 % width = 60% height = 1
crlf
// 格式 function 按钮名
function 发行CDMA测试卡
// 结果控件名 = 函数名 数据
// 函数可嵌套
null = open_old_scriptwindow(00)
null = old_scriptwindow_openfile( get_user_file_path() "被界面调用的apdu脚本.txt")
null = old_scriptwindow_set("inputKI",$inputKI)
null = old_scriptwindow_set("inputIMSI",$inputIMSI)
null = old_scriptwindow_set("inputKI15",$inputKI15)
null = old_scriptwindow_set("inputICCID",$inputICCID)
null = old_scriptwindow_run()
end function
再编辑一个文件,内容为
这完全就是常规版apdu脚本。
存储为 被界面调用的apdu脚本.txt,与前面的文件放在同一个文件夹中。
? "脚本的确执行了"
? "inputKI " $inputKI
? "inputIMSI " $inputIMSI
? "inputKI15 " $inputKI15
? "inputICCID " $inputICCID
这完全就是常规版apdu脚本。
存储为 被界面调用的apdu脚本.txt,与前面的文件放在同一个文件夹中。
下面是运行结果,这个示例演示的主要内容有,
在界面脚本中打开常规版apdu窗口
将界面的内容写与apdu窗口交互
运行apdu窗口中的脚本并等待结束。
在界面脚本中打开常规版apdu窗口
将界面的内容写与apdu窗口交互
运行apdu窗口中的脚本并等待结束。
//open_old_scriptwindow ( 00 )
//-----Final result ---
//
//old_scriptwindow_openfile ( get_user_file_path ( ) "被界面调用的apdu脚本.txt")
//C:\Users\Jenny\Desktop\界面调用脚本\
//C:\Users\Jenny\Desktop\界面调用脚本\被界面调用的apdu脚本.txt
//-----Final result ---
//
//old_scriptwindow_set ( "inputKI" , 11223344 )
//inputKI= 11223344
//-----Final result ---
//
//old_scriptwindow_set ( "inputIMSI" , 66i89879876 )
//inputIMSI= 6689879876
//-----Final result ---
//
//old_scriptwindow_set ( "inputKI15" , 11223355 )
//inputKI15= 11223355
//-----Final result ---
//
//old_scriptwindow_set ( "inputICCID" , 543254325432 )
//inputICCID= 543254325432
//-----Final result ---
//
//old_scriptwindow_run ( )
//[-]==========================[X]
//|脚本的确执行了
//|inputKI 11223344
//|inputIMSI 6689879876
//|inputKI15 11223355
//|inputICCID 543254325432
//[-]==========================[-]
0 0
- Snooper界面脚本与常规版脚本互动
- Snooper常规版 测试$功能 脚本
- Snooper taoism辅助计算工具中base64界面脚本
- Snooper taoism 用户界面脚本 示例
- snooper 常规版的简单递归
- Cult3D基础教程——7.与网页脚本互动
- snooper taoism 2 中 sm2 辅助计算脚本
- snooper 0.1.4.3中edep取现的脚本
- oracle常规信息查询脚本
- snooper 0.1.4.3中实现edep修改透支限额的脚本
- 关于在snooper脚本中加强使用 "?" 以及 "compare" 的通知
- 脚本UI界面
- 脚本AI与脚本引擎
- 脚本AI与脚本引擎
- 脚本AI与脚本引擎
- 常规版中,重复执行同一脚本,根据变量内容做不同操作。
- 客户端脚本创建界面元素
- MySqlDos界面下导入脚本
- RTF Code Generator
- 抗锯齿方法两种setAntiAlias setBitmapFilter
- C#与.NET程序员面试宝典
- DS, ES, SS, DI, SI, BP, SP, IP, FS 寄存器
- mongodb常用命令
- Snooper界面脚本与常规版脚本互动
- 蜗牛移动被联通叫停放号,疑为受到大量投诉
- Webview自适应屏幕
- 3个著名加密算法(MD5、RSA、DES)的解析
- Mysql常用命令行大全
- 如何保养和清洁石雕
- 去掉Eidtpuls自动生成bak文件
- 网络速度工具
- 逻辑卷