1

I understand that when you right click on runsikuliX.cmd and select "Run as administrator", will enable you Sikuli scripts to run smoothly. Please advise on how can I can implement this via command line. I tried executing the following command but still click and find actions were not triggered:

runas /env /user:<localhost>\Administrator runsikuliX.cmd -r sikuli script

I'm using Windows 8 64 bit, java 1.7.0_45.

Eugene S
  • 6,709
  • 8
  • 57
  • 91
Klayr
  • 11
  • 3
  • I am not convinced that this is what's causing your problem. Sikuli should work just fine when running it as a regular user. What is your problem exactly? Does Sikuli perform any of the actions or nothing at all? – Eugene S Oct 02 '15 at 06:43
  • I have a similar scenario with https://answers.launchpad.net/sikuli/+question/251336, wherein other actions were not performed, but if I run as Admin, it can detect even commands such as keydown and keyup. But the difference with the mentioned scenario is that I need to run the sikuli command via command line. – Klayr Oct 02 '15 at 07:21

1 Answers1

0

For AutoIT we use command "start"

start /env /user:\Administrator runsikuliX.cmd -r sikuli script

Mona
  • 342
  • 1
  • 3
  • 17