I have a automation script (mouse and keyboard automation) which works with a application installed on a Windows Server 2012 VPS.
It works perfectly when I am connected to the VPS via RDP. But when I am not connect, the script won't work! It stops/freezes, this is very strange. I guess that it needs a virtual display/screen/session to work properly. I have searched about this but none of the solutions worked for me, so as a last hope I am posting it here.
The script does some automation task when called from PHP (It is not a PHP script, PHP just calls the script) and returns some information back after automating. This won't work when I am not connected to the VPS so it returns a `502 Gateway Timeout` error. The automation script seems to stop at the point where it's supposed to focus/click something...
(P.S This question was originally posted at ServerFault)
Edited by TheDcoder, 10 May 2017 - 11:57 AM.