当前位置:网站首页>secureCRT无限循环脚本
secureCRT无限循环脚本
2022-04-22 06:13:00 【oFFCo】
产品在测试过程中发现反复切换ip地址,会有小概率画面卡停或者图像变灰,构建securecrt ip自动切换按钮脚本如下,但是该按钮脚本无法无限循环测试。
/app/spi_gpio_decoder write 0x28 0x01000000\r
/app/spi_gpio_decoder write 0x2c 0xc0a80115\r
/app/spi_gpio_decoder write 0x2a 0xc0a8010a\r
/app/spi_gpio_decoder write 0x28 0x01000800\r
usleep 300000 \r
/app/spi_gpio_decoder write 0x28 0x01000000\r
/app/spi_gpio_decoder write 0x2c 0xc0a80116\r
/app/spi_gpio_decoder write 0x2a 0xc0a8010b\r
/app/spi_gpio_decoder write 0x28 0x01000800\r
usleep 300000 \r
构建无限循环的vbs脚本如下,可先通过脚本录制操作,获取相关命令的vbs脚本,再加入while语句,注意文本要保存为ansi格式,否则utf-8下语句可能识别异常。保存下面文本直接securecrt,脚本,执行,即可。
#$language = "VBScript"
#$interface = "1.0"
Sub main
While 1
crt.Screen.Send "/app/spi_gpio_decoder write 0x28 0x01000000" & chr(13)
crt.Screen.Send "/app/spi_gpio_decoder write 0x2c 0xc0a80115" & chr(13)
crt.Screen.Send "/app/spi_gpio_decoder write 0x2a 0xc0a8010a" & chr(13)
crt.Screen.Send "/app/spi_gpio_decoder write 0x28 0x01000800" & chr(13)
crt.Sleep(300) & chr(13)
crt.Screen.Send "/app/spi_gpio_decoder write 0x28 0x01000000" & chr(13)
crt.Screen.Send "/app/spi_gpio_decoder write 0x2c 0xc0a80116" & chr(13)
crt.Screen.Send "/app/spi_gpio_decoder write 0x2a 0xc0a8010b" & chr(13)
crt.Screen.Send "/app/spi_gpio_decoder write 0x28 0x01000800" & chr(13)
crt.Sleep(300) & chr(13)
WEnd
End Sub
版权声明
本文为[oFFCo]所创,转载请带上原文链接,感谢
https://blog.csdn.net/xiao_yao_ke/article/details/106814471
边栏推荐
- 完成一个学生信息管理系统,系统练习面向对象、函数、字符串等知识。实现知识的综合应用。 使用类、函数、数据库等来实现
- 提示用户输入其名字 用户作出响应后 将其名字写 入到文件guest.txt 中 程序判断当不等于n的时候,就执行 创建文件data.txt,文件共10万行,每行存放一个1~100之间的随机一个整数
- Zhejiang University Edition "C language programming (3rd Edition)" topic set exercise 7-4 find out the elements that are not common to two arrays
- 短路
- ASP.NET日常开发随手记------发送邮件
- .NET学习笔记(一)----泛型的引入、优势、设计思想、原理、应用
- 安裝和修改uTools及vscode插件安裝路徑
- ASP.NET日常开发随手记------导出Excel
- Wechat browser cannot save cookies for a long time
- 分布式任务调度与计算框架:PowerJob 高级特性-容器 03
猜你喜欢

腾讯云对象存储服务的使用

Nacos cluster configuration

Does microelectronics major make chips? What is the chip related to?

Nacos服务注册中心对比提升

Introduction to IC Analog Layout - learning notes on layout Basics (5)

软件工程导论第六版复习(笔记)
![. net learning notes - about Net core (3) [reading configuration files, general parsing JSON files, reading static files]](/img/7d/b4ce2ba6d0896d443997615156ab08.png)
. net learning notes - about Net core (3) [reading configuration files, general parsing JSON files, reading static files]

.NET学习笔记(二)----无处不在的反射(包含读取json的方法)

再见了Postman,有一说一:Apifox才是YYDS

Clion and dynamic link library
随机推荐
【Bug小记】页面刷新后获取不到sessionstorage数据
14行代码完成任意选择图片爬取
泛型与反射的实际使用练习(包含一个泛型缓存)----手写ORM框架
Vscode opens the applet and runs it to wechat developer tool wxml file compilation error
Jeecg project deployment notes
paging
Digital IC design, after learning Verilog syntax, what else do you need to learn?
[Opt 31-67] Problem axi_interconnect RTL报错
微信浏览器无法长期保存cookie
VSCode打开小程序运行到微信开发者工具WXML 文件编译报错
NOI / 1.5.25:求特殊自然数
安裝和修改uTools及vscode插件安裝路徑
再见了Postman,有一说一:Apifox才是YYDS
What is the learning route of switching to digital IC Verification? Is there time to start turning now? 985 master's degree, second year of Graduate School of Electronics
ASP.NET日常开发随手记------用文本文档记录日志
分布式任务调度与计算框架:PowerJob 快速开始(本地IDE版) 02
[jeecg] modify VISER chart color style
Nacos服务消费者注册和负载均衡
.NET日常想法随手记------比较两个json文件并获取标签相同但值却不同的数据
ASP. Net daily development notes ---- export to excel