def omnipeek_close(self):
print 'Close the omnipeek application software'
hwnd = win32gui.FindWindow('OmniPeek',None)
win32gui.SetForegroundWindow(hwnd)
self.shortcut_keys(['Alt','F'])
self.sleep('1')
self.shortcut_keys(['X'])
self.sleep('1')
hwd = win32gui.FindWindow(None,'OmniPeek')
#print hwd
#The window exist
if hwd:
win32gui.SetForegroundWindow(hwd) #ö
self.sleep('1')
self.shortcut_keys(['Alt','Y'])
self.sleep('5')
return True
ctrl_omnipeek.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录