def main():
global g_Recoder_Flag
global g_sys_Debug
global g_sys_timeget
global g_file_object
global g_telnet_ip
global g_file_path
Get_SystemParam()
g_telnet_ip = raw_input("please input the SecureCRT session Ip:")
g_file_path = raw_input("please save the records script Name:")
if g_file_path.find(':')<0:
g_file_path= find_parentpath() +'\\tmp_result\\'+g_file_path
if file_exist(g_file_path)==True:
os.remove(g_file_path)
# ??
print '............Please run SecureCRT sendkeys.............'
print 'F9 -- start telnet module '
print 'F10 -- stop telnet module'
print 'F11 -- temporary pause '
print 'F12 -- temporary continue '
print 'F8 -- Record program exit'
hm = pyHook.HookManager()
# ?¼
hm.KeyDown = onKeyboardEvent
# ü??
hm.HookKeyboard()
# ¼
hm.MouseAll = onMouseEvent
# ??
hm.HookMouse()
# ??????????
pythoncom.PumpMessages()
RecordScript.py 文件源码
python
阅读 16
收藏 0
点赞 0
评论 0
评论列表
文章目录