← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #692500]: Pass Location() as a parameter in definition

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
def clickloc(myLocation):
    app.focus()
    appregion = Region(App.focusedWindow())
    appregionx = appregion.getX()
    appregiony = appregion.getY()
    click(Location(appregionx+myLocation.x,appregiony+myLocation.y))

clickloc(insertedOffset)

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