Hello everyone,
I connect to a virtual Windows Server 2019 (desktop experience) on the Google Cloud Platform, but I ran into similar issues in Azure and AWS.
My windows instance runs a user interface that is updated in real time by data from the web.
Also, it runs a script that monitors this data and operates the mouse and keyboard as the data changes, to simulate human activity and enter feedback in response.
In other words, there is a script that "looks" at the screen and performs actions according to what is happening on it.
Everything works great, but when I minimize or completely close the RDP window on my end (my office) then the script on the VM stops receiving visual input, meaning it stops "seeing" the elements on the screen of the remote desktop, then it does not respond at all, let alone able to operate the interface to enter the feedback ( I am using Windows built-in remote desktop connections., I tried to connect with freeRDP without success).
I need to allow the script to continue running according to the input from the screen even when my RDP window is closed. The script runs on the cloud virtual machine itself (it's an .exe file stored on the VM's virtual HDD), so it's independant from my system.
I turned to Google support, who stated in advance that they could not help much because it was beyond their capabilities, and indeed failed to help me get a solution to my need, but suggested that I turn to Microsoft with the same question, and that if there is a solution, the solution will only be provided by Microsoft.
When I run the same script on a local virtual machine on my PC (in this case Windows 10 as a guest system, on top of Windows 11 as the host), there is no problem closing the RDP window and the script continues to work normally.
What should I do to enable the same behaviour on the Google Cloud Platform running Windows Server 2019?
Essentially, what I would like is for the script to operate completely independant from my system, and imitate a human in performing actions (keyboard, mouse) on the on-screen UI.
Thanks in advance for your time :-)