def OpenWiressResourse(self):
log_print( ">>OpenWiressResourse" )
app = None
LstIDX =[0]
RET = None
app = self.OpenNetDialogAndSelectIcon(LstIDX)
time.sleep(1)
print 'OpenWiressResourse OpenNetDialogAndSelectIcon',LstIDX
try:
#Open "resorse" dialog
#-app[KEY_NETDIALOG].TypeKeys(KEY_NETDIALOG_FILE,pause=KEY_PAUSH_SLEEP_TIEM)
#-app[KEY_NETDIALOG].TypeKeys(KEY_NETDIALOG_FILE_RESOSE,pause=KEY_PAUSH_SLEEP_TIEM)
print 'OpenWiressResourse here'
RET =app[KEY_NETDIALOG].ListViewWrapper.GetItemRect(LstIDX[0])
print 'RET',RET
#myMenu = [KEY_POP_MENU_RSE]
#self.PopMenuClick(app,KEY_NETDIALOG,myMenu,RET)
#self.wingui.shortcut_keys(['Alt','F'])
time.sleep(1)
win32api.keybd_event(18,0,0,0)
win32api.keybd_event(70,0,0,0)
win32api.keybd_event(70,0,win32con.KEYEVENTF_KEYUP,0)
win32api.keybd_event(18,0,win32con.KEYEVENTF_KEYUP,0)
time.sleep(1)
#self.wingui.shortcut_keys(['R'])
win32api.keybd_event(82,0,0,0)
win32api.keybd_event(82,0,win32con.KEYEVENTF_KEYUP,0)
time.sleep(3)
#close "net connect" dialog
#-app[KEY_NETDIALOG].TypeKeys(KEY_NETDIALOG_FILE,pause=KEY_PAUSH_SLEEP_TIEM)
#-app[KEY_NETDIALOG].TypeKeys(KEY_NETDIALOG_FILE_CLOSE,pause=KEY_PAUSH_SLEEP_TIEM)
#self.closeExistDialog()
#connect to "resorse" dialog
app=application.Application().connect_(title_re=KEY_FIND_WIRESS_NAME_PROPERTY )
print 'OpenWiressResourse here 23'
time.sleep(1)
except Exception ,excet_str:
log_print( excet_str)
#self.m_ERROR_MSG = ERR_024
app = None
return app
#014
rssid.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录