Use pywinauto module to control Windows gui https://pywinauto.readthedocs.io/en/latest/ pip install -U pywinauto