资源简介
14359376Xshell_Plus_v6_Final_永久授权补全简体中文绿色版.7z
代码片段和文件信息
def Main():
xsh.Session.Open(“C:\\...\\NetSarang\\Xshell\\Sessions\\New Session.xsh“)
xsh.Screen.Synchronous = True #True or False
xsh.Session.Sleep(1000)
#*** WaitForString ***
xsh.Screen.WaitForString(“aaa“) # input “aaa“ in Terminal
#*** Send ***
xsh.Screen.Send(“cat /etc/passwd“)
xsh.Screen.Send(‘\r‘)
xsh.Session.Sleep(1000)
#*** Get Clear ***
ScreenRow = xsh.Screen.CurrentRow - 1
ReadLine = xsh.Screen.Get(ScreenRow 1 ScreenRow 40)
Items = ReadLine.split(‘:‘);
xsh.Dialog.MsgBox(Items[2])
xsh.Screen.Clear()
#*** Property ***
xsh.Screen.Synchronous = False
MsgProp = “Col:“ + str(xsh.Screen.CurrentColumn) + “ “
MsgProp = MsgProp + “Row:“ + str(xsh.Screen.CurrentRow) + “ “
MsgProp = MsgProp + “TermCol:“ + str(xsh.Screen.Columns) + “ “
MsgProp = MsgProp + “TermRow:“ + str(xsh.Screen.Rows)
xsh.Dialog.MsgBox(MsgProp)
- 上一篇:JS小游戏源码
- 下一篇:《数字集成电路分析与设计——深亚微米工艺》习题答案
相关资源
- LitePal.rar
- 山东大学机器学习期末复习资料.zip
- 微擎0元拼团涨粉2.0.1.zip
- 剪辑的语法_13682282.pdf
- be85su.pdf
- Imatest_3.5.1.rar
- 编译原理基础—刘坚.pdf
- VA_X_Setup2118.exe
- 最新AnyLogic多方法建模与仿真-官方培
- 安卓室内定位初窥.rar
- qq_35523524_10270722.zip
- iMGExplosionFX_1.0.unitypackage
- 微擎1.7.5一键安装.zip
- BookManageSystem.rar
- 第4组_乐享购物.zip
- 全新裂变红包1.64破解版.zip
- CE.7z
- 微擎商业版1.8.2.zip
- awd_platform.7z
- ShiTou_CRM.zip
- NetCameraTest5.4.zip
- SVM.rar
- Securecrt64.7z
- Eric61703中文汉化版.zip
- 矩阵分析与应用课件_张贤达_清华课件
- 百度云(1).zip
- 王红梅.rar
- 周志华机器学习.zip
- 榆落微时光1.0.39小程序前端.zip
- 智慧答题-崛企5.1.2.zip
评论
共有 条评论