windows


UIAutomation won't work in a VPS if I am not connected via RDP


I am stuck in a strange situation. I have script which uses mircrosoft's UIAutomation to automate an application. The script is inside a VPS running Windows Server 2012
The script works perfectly while I am connected to the VPS via RDP (Remote Desktop). When I am not connected, the script seems to be stuck on SetFocus for a object... which leads me to believe that the script needs a Display/Screen/Session in order to work... but I am not sure if it is possible to do it while I am not connected to the VPS.
I can see 2 possible solutions here, either modify the script in someway to work in this environment or make the VPS have a virtual desktop while I am not connected (this solution might be more related to Server Fault rather than StackOverflow).
I am very confused, thanks for the help in advance :)

Related Links

Set-ExecutionPolicy for hundreds of users with PowerShell script
How to prevent “Program has stopped working” dialog when calling an .exe from Powershell
GNU make - how to keep track of max number simultaneous makes
PowerShell command to check the connection between IPaddress and port in Windows Server 2008 R2
How to avoid I/O error 32 when handling file being used by software
TNSPING hangs after result
Laravel storage folder write access
Cashed msi installer with bug
Unable to connect to mongo (3.4) using robomongo (0.9.0) and username and password?
How do I pipe a file into an encrypted, password protected zip file, then delete the original file, in Windows batch?
How do I programmatically get version info from Windows suitable for activating with the KMS client
Cannot find runtime 'node' on PATH vscode mac
Raspberry Pi SSH connection over Ethernet fails
Can't prevent echo line from displaying when batch file run
Batch renaming in PowerShell
Android Studio UI Scaling

Categories

HOME
android
phantom-dsl
fpga
zend-framework
swt
pascal
fftw
saml-2.0
knitr
javacc
edge
simulink
android-json
pattern-matching
fabric.io
openpyxl
watson-conversation
project-intu
rtf
zerobrane
plink
scrolltop
cumulocity
production
user-experience
babel
cgbitmapcontext
comparator
syntax-highlighting
gpio
shared
exchangewebservices
browser-sync
tizen-tv
constexpr
aws-codecommit
database-comparison
playstation-portable
gojs
getlasterror
openalpr
google-earth-engine
amazon-ses
protein-database
dynamic-linq
opennms
lampp
cnc
robomongo
dotnet-httpclient
git-flow
cup
otp
reachability
winusb
beamer
tooleap
project-organization
qbxml
contentcontrol
concurrentmodification
java-money
flock
rate-limiting
google-books
canalyzer
amiga
cwrsync
mmwormhole
java-security
at-job
webmatrix-3
gnumeric
amslidemenu
mysql-error-1044
jammer
hidapi
observium
asdf
wimax
mkv
fragmenttransaction
saleslogix
dajaxice
lambdaj
multiplexing
ilasm
kqueue
isa-swizzling
apache-commons-dbutils
ikimagebrowserview
cuteeditor
socketserver
cruisecontrol.rb
sifr
sifr3
change-management

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App