Sikuli with java - don't type in CMD as Admin

Asked by Ilya Levyant on 2018-11-12

Hey guys, I'm using Sikuli library in Java application. All sikuli methods are working correctly, but there is a one problem:
if open CMD as Administrator - Sikuli couldn't type/paste text here. At the same time if CMD were opened not as Admin, it works correctly. Also in all another applications/files/windows it's typing as should. So it isn't error in code.
In logs it's writing that everything is working and it typing:

[TestNG] Running:
[log] TYPE "123"
[log] TYPE "#ENTER."
[log] TYPE "123"
[log] TYPE "#ENTER."
[log] TYPE "123"
[log] TYPE "#ENTER."
[log] TYPE "123"
[log] TYPE "#ENTER."
[log] TYPE "123"

There is no problem like this if I using SikuliX IDE. But in intellij IDEA there is.
Any ideas?

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
Dado (dadotc) said : #1

it works if you run the IDE "as administrator".

If you think about it, it makes sense. Probably it's about security, it is risky that some process (sikulix proc, without admin right) could write inside a window that has admin rights.
If the sikulix process is already run elevated (has admin rights), why not enabling it to write inside another elevated window ? :)

RaiMan (raimund-hocke) said : #2

@Dado: thanks for your helpful answer

--- he says: In logs it's writing that everything is working and it typing

The SikuliX log of clicking and typing is ONLY the information, that the command is issued against the system. SikuliX does not get any feedback currently about whether the command did what it should have done.

Ilya Levyant (ilyalevyant) said : #3

@Dado: I always run IDE as Admin. It isn't help.

RaiMan (raimund-hocke) said : #4

to be checked

Can you help with this problem?

Provide an answer of your own, or ask Ilya Levyant for more information if necessary.

To post a message you must log in.