Skip to content

Simple python script with pyinstaller to focus a Window

Notifications You must be signed in to change notification settings

Spectryx/focus_desktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

focus_desktop

Simple python script with pyinstaller to bring a windows application in foreground

Make executable

run pyinstaller main.py --onefile while in the same directory as main.py

required packages

pyinstaller
pywin32

usage

Download the files in the executable folder. Make sure config.ini and Focus_desktop.exe is in the same folder, change window_name in config.ini to whatever window you want to bring into focus, is case sensitive

credits

Code from https://stackoverflow.com/questions/2090464/python-window-activation

About

Simple python script with pyinstaller to focus a Window

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages