Hi,
I want to use the sikulixapi classes from python to implement a scroll functionality...
I'm totally new with robot and python and trying to find a way to do it.
What I tried is:
`import subprocess
from jnius import autoclass
from subprocess import call
subprocess.call(['java', '-jar', 'sikulixapi.jar']) #temporary I put the jar is at the same location of the python class
# moving left
stepX = 10
stepY = 0
run = start
Mouse.mouseMove(start); #wait(0.5)
Mouse.mouseDown(Button.LEFT); #wait(0.5)
for i in range(20):
run = run.right(stepX).above(stepY)
Mouse.mouseMove(run)
#wait(0.1)
Mouse.mouseUp()`
Not sure if this will work, am not able to test it yet cause am getting this error:
Importing test library '/<...>/resources/SikuliApi.py' failed: KeyError: 'JAVA_HOME'
Hi, I want to use the sikulixapi classes from python to implement a scroll functionality... I'm totally new with robot and python and trying to find a way to do it.
What I tried is: `import subprocess from jnius import autoclass
from subprocess import call
subprocess.call(['java', '-jar', 'sikulixapi.jar']) #temporary I put the jar is at the same location of the python class
Location = autoclass('org.sikuli.script.Location') Mouse = autoclass('org.sikuli.script.Mouse') Button = autoclass('org.sikuli.script.Button')
def scroll_right(self):
setting begin - end
Not sure if this will work, am not able to test it yet cause am getting this error: Importing test library '/<...>/resources/SikuliApi.py' failed: KeyError: 'JAVA_HOME'
I edited my .bash_profile this way:
when printing the path am getting:
But still facing the same. Please advice if am on the right direction... and if yes what is the problem with JAVA_HOME?
Regards.