you need have a windows desktop session on aws vm, you need keep the desptop on aws, don't lock screen automatically, you can find one always on machine, rdp to the aws vm. keep rdp connneciton on.
for more about windows session, station, desktop, you can refer to: https://techcommunity.microsoft.com/t5/ask-the-performance-team/sessions-desktops-and-windows-stations/ba-p/372473#:~:text=A%20desktop%20is%20a%20session-specific%20paged%20pool%20area,and%20each%20windows%20station%20can%20have%20multiple%20desktops.
Answer from justin on Stack OverflowHey all, I am using pyautogui to click the mouse on my screen but the issue is it takes over my mouse :s is there there anything I can use to click but not use my mouse. I am making a bot that I want to run on the background :)
python - Alternative to pyautogui for desktop automation - Stack Overflow
python - better way to automate mouse&keyboard using pyautogui - Stack Overflow
PyAutoGUI vs Pywinauto
Best tool to automate GUI (like AutoHotKey, PyAutoGUI)?
Videos
If you need portable and reliable solution, you have to find a library that supports accessibility technologies to access GUI elements by text. Basic technologies are:
- Win32 API, MS UI Automation (Windows)
- AT-SPI (Linux)
- Apple Accessibility API (MacOS)
There are several open-source GUI automation libraries supporting some of these technologies (usually 1 or 2). Python solutions:
- pywinauto on Windows (both Win32 API & MS UIA, see Getting Started Guide)
- pyatspi2 on Linux
- pyatom on MacOS
There is also a thread on StackOverflow regarding hard sleeps vs flexible waiting.
Enjoy! :)
The way you are interacting with the .exe excludes alternatives to coordinates or blind firing (Tab, Tab, Enter etc..).
If the application has an API, you could interact with it programatically. If it doesn't you can only try to match the location for x screen resolutions, and this only if the GUI is used in Fullscreen/windowed Fullscreen.
What is the difference between the two and which one is better?
(I'm using windows 10. )
» pip install PyDirectInput