← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #232561]: When call hover function from a region object, it throw a java null pointer exception

 

Question #232561 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232561

    Status: Open => Answered

RaiMan proposed the following answer:
This is how the usage of Sikuli in Jython is recommended

from sikuli import *
region = Region(0,100,100,100)
hover(Location(region.x/2, 0))

this works for me, even if the resulting point is outside the screen
(moves to 0,0) (Be aware: other than regions, location objects are not
checked at creation about being outside any screen).

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.