This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requirements: | |
# - Win7 or Win8.1 x64, 64-bit Python | |
# - pywinauto 0.5.2+ | |
# - UAC is fully disabled | |
from __future__ import print_function | |
import pywinauto | |
pywinauto.Application().Start(r'explorer.exe') | |
explorer = pywinauto.Application().Connect(path='explorer.exe') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requirements: | |
# - Win7 or Win8.1 x64, 64-bit Python | |
# - pywinauto 0.5.2+ | |
# - 7z920-x64.msi is in the same folder as the script | |
# - UAC is fully disabled | |
from __future__ import print_function | |
import sys, os | |
os.chdir(os.path.join(os.getcwd(), os.path.dirname(sys.argv[0]))) | |
import pywinauto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requirements: Python 2.7 or 3.4, pyWin32, pywinauto 0.5.0+ | |
# download the repo: https://github.com/pywinauto/pywinauto | |
# place this script to repo root folder | |
import sys, os | |
os.chdir(os.path.join(os.getcwd(), os.path.dirname(sys.argv[0]))) # running at repo root folder | |
import pywinauto | |
mfc_samples_folder = os.path.join( | |
os.path.dirname(sys.argv[0]), r"apps\MFC_samples") |