← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #228089]: howto extend region class for long click?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Supposing we are talking about the Python level.

Should be sufficient to have this as a global function. Put all these
global def()'s in one globals.sikuli and import it.

Otherwise you have to define your own Region class:
class myRegion(Region):

But be aware, you have to cast every region object, that should use your
"longClick", to a myRegion object, since internally in many cases region
objects are created in places (e.g. down in Java), that do not know
anything about your myRegion.

Beginning mid of June you can create git pull requests against the next
version 1.1

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