python

Asked by JN on 2020-01-01

from jpype import *
import jpype

jvmPath = getDefaultJVMPath()
startJVM(jvmPath, "-ea", r"-Djava.class.path=/Users/name/Desktop/sikulixapi-2.0.1.jar")
print(jpype.isJVMStarted())
Screen = JClass("org.sikuli.script.Screen")
s = Screen()
s.click(r'img/test.png')
shutdownJVM()

Stops executing on s=Screen(), don't know how to deal with it

Question information

Language:
English Edit question
Status:
Expired
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2020-01-01
Last reply:
2020-01-17
RaiMan (raimund-hocke) said : #1

error message? stack trace?

from jpype import *
import jpype

does not make sense:
either
from jpype import *

or
import jpype

JN (nye0823) said : #2

Ok, change from jpype import * as you said
But it ends up stopping at s = Screen(), waiting without doing anything like click
I felt unable to instantiate because I took a jar from someone else that could be instantiated
Due to the lack of information, I can only turn to you for help. Thank you for your time

Launchpad Janitor (janitor) said : #3

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.