run sikuli on remote desktop without active session

Asked by Greg Thomp on 2020-08-31

Hi everyone. I have a situation in which I try to run my script in java with Sikuli library on remote desktop, and if I run on my session, its work fine, but if I want to run script and close session, I get a communication from Remote Desktop Connection "Programs on the remote computer will continue to run after you have disonnected. You can recconect to this remote session later by logging on again", and after disconnected my script doesn't work, I suggest because Sikuli doesn't see the screen.
[WARNING]
org.sikuli.script.FindFailed: C:\Users\user\Downloads\Winium\src\main\r
esources\Firstlog.png: (115x34) in R[0,0 1920x1080]@S(0)
    at org.sikuli.script.Region.wait (Region.java:2222)
    at Workspace.runProces (Workspace.java:66)
    at Main.main (Main.java:33)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.jav
a:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessor
Impl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:282)
    at java.lang.Thread.run (Thread.java:748)

Please help me with this issue.
thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2020-09-02
Last query:
2020-09-02
Last reply:
2020-08-31
Best RaiMan (raimund-hocke) said : #1

no SikuliX solution.

SikuliX features need access to an active screen, where the stuff is displayed, that you want to deal with and/or act on.

Greg Thomp (greg0thomp) said : #2

Thanks RaiMan, that solved my question.