Using different User accounts

Asked by lsch

Hi all,

I try to implement kind of a logging functionality with SikuliX.

We have a program with a "Save" button that saves data into a XML file. I push this button by using SikuliX. This is already working flawlessly.

Now the problem is that the computer this program runs on is a control computer for a solar power plant. It might happen that a user uses this computer for example to read off live measurement values of the system. These values are presented in another program and the program with the "Save" button gets hidden behind it. That means that SikuliX can no longer find the Save button and logging stops.

My idea was to let the program with the Save button run on a different user account than the program the user is possibly interacting it. This did not work, which for me makes kind of sense when I am thinking about how I understand that SikuliX works. Is there a possible work-around for this?

Another solution of the problem might be to use a second monitor that is "hidden" to the user and only the program with the "Save" button runs on that. So it should not happen that the save button is hidden.

What would you suggest?
Thank you and best regards.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
lsch
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

use the App class features to bring the window to front.

In any case use version 1.1.4

Revision history for this message
lsch (lschw) said :
#2

Hi,

Thanks a lot for the answer.

This might solve the problem from the SikuliX side. However, the control computer everything runs on will be quite useless for other applications besides the one that needs to be on top.

Does SikuliX support a "screening" for other windows that are hidden?

Best regards

Revision history for this message
RaiMan (raimund-hocke) said :
#3

--- However, the control computer everything runs on will be quite useless for other applications besides the one that needs to be on top.

Yes - you have to live with that. SikuliX acts visually on the content of the screen.

--- Does SikuliX support a "screening" for other windows that are hidden?
simply no - see above

BTW: the problem is not the screen content as such (since this might be organised in a way, that everything needed is visible - at least on larger monitors), but mouse/keyboard together with input focus, which need to be exclusive for SikuliX during a workflow.

Revision history for this message
lsch (lschw) said :
#4

OK, thank you for the help!