duyminh1998 / pycmo

Command Modern Operations Learning Environment
Other
49 stars 23 forks source link

Replace batch and ps scripts with ahk #41

Closed duyminh1998 closed 9 months ago

duyminh1998 commented 9 months ago

We need to know more about

whether we can replace the batch and Powershell scripts that are currently being used to restart a scenario with the Python module ahk

So that

we can potentially improve the performance of pyCMO

Questions to answer

  1. Can we replace every batch and Powershell script with functions from ahk?
  2. What are the tradeoffs of using ahk?
duyminh1998 commented 9 months ago

Alternative is to use win32gui

duyminh1998 commented 9 months ago

Per the docs, using ahk requires us to download the executable first. This might add more pain than it is worth.

duyminh1998 commented 9 months ago

HOW DO I DETECT IF A WINDOW EXISTS USING PYTHON? How can we check if a window exists?