← Back to team overview

sikuli-driver team mailing list archive

[Question #689411]: run from command line

 

New question #689411 on Sikuli:
https://answers.launchpad.net/sikuli/+question/689411

Hi, 

I have a file with more than 1500 lines. If a i try to run from sikulix i don't have any trouble. But if i want to run from command line (Windows) i don't have any response and is not working.

For that reason i try to make a python script to try to open sikulix and then press ctrl+r. The problem there is that always show a message of error on line 399 column 26, even if i don't have anything there.

The script python describe below is this:


from pynput.keyboard import Key,Controller
import os
import time
os.startfile("C:\Proyecto_Bonos\sikulx-2.0.1.jar")
time.sleep(5)
print("comenzando a escribir")
keyboard = Controller()
keyboard.press(Key.ctrl)
keyboard.press("r")
keyboard.release(Key.ctrl)
keyboard.release("r")
print("done")

This code works only when the sikulix file is lower than 399 lines.

Regards

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.