34 Star 104 Fork 20

yinkaisheng / PythonUIAutomation4Windows

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
HideConsoleWindow.py 405 Bytes
一键复制 编辑 原始数据 按行查看 历史
yinkaisheng 提交于 2016-01-04 11:02 . add GetConsoleWindow
#!python3
# -*- coding:utf-8 -*-
import time
import automation
def main():
consoleWindow = automation.GetConsoleWindow()
print(consoleWindow)
print('\nconsole window will be hidden in 3 seconds')
time.sleep(3)
consoleWindow.Hide()
time.sleep(2)
print('\nconsole window shows again')
consoleWindow.Show()
if __name__ == '__main__':
main()
input('press any key\n')
Python
1
https://gitee.com/yinkaisheng/PythonUIAutomation4Windows.git
git@gitee.com:yinkaisheng/PythonUIAutomation4Windows.git
yinkaisheng
PythonUIAutomation4Windows
PythonUIAutomation4Windows
master

搜索帮助