← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #269440]: Sikulix 1.1.0 Onchange-problem

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--1: Settings.OcrLanguage = "deu"
This only makes sense, if you have put german traineddata into the tessdata folder.

--2: does menu.click()
... open the menu?

--3: does ch.highlight(5)
... highlight the opened menu?

--4: this does not make sense
r = getLastMatch()
menustring = r.text()
according your intention:
r now is the region of what match = findText(z) returned (what should have been highlighted)

if you want to look into the menu region, you have to use the match from
event.changes.

--5: you are using 1.0.1
... so I am not sure, wether findText() already works there.
in doubt use find(z) instead

Since you seem to be new to SikuliX, I recommend to switch to 1.1.0
(http://sikulix.com)

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