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

Asked by Ilya Levyant

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:
  C:\Users\Admin\.IdeaIC2018.1\system\temp-testng-customsuite.xml
[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"
etc....

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

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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 ? :)

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

@Dado: thanks for your helpful answer

BE AWARE:
--- 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.

Revision history for this message
Ilya Levyant (ilyalevyant) said :
#3

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

Revision history for this message
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.