← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #660710]: [1.1.0] script stuck in click() or hover()

 

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

    Status: Open => Answered

masuo proposed the following answer:
I can't understand what "struck" is meant.
Does mouse click on an unexpected position?

Try print region "orgReg" and region "nextReg".
Try highlight region  "orgReg" and region "nextReg".

if exists(imgList[6], 2): 
     orgReg = getLastMatch()
     orgReg.highlight(1)      # <---add
     print "orgReg:", orgReg    # <---add 

     nextReg = orgReg.offset(orgReg.w, 0)
     nextReg.highlight(1)     # <---add
     print "nextReg:", nextReg    # <---add

     nextReg.click()

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