← Back to team overview

sikuli-driver team mailing list archive

[Question #686421]: How To Input a variable containing text to reg.find()

 

New question #686421 on Sikuli:
https://answers.launchpad.net/sikuli/+question/686421

Trying to create a script which passes from excel to Sikul a name and then searches on an application screen for that name. The screen has 50 visible icons with a different name in each. I am trying to find the icon which matches the name passed in and click it. However when using the following code I get an error:

 reg=Region(303,294,1078,530)
m = reg.find("FORD")



[error] RunTimeIDE: ImageMissing: FORD
[error] RunTimeIDE: Wait: Abort: Jython: at xcel1 (49)
[error] script [ xcel1 ] stopped with error at line --unknown--

If I pass an image in it works, but not passing either hard coded text or a variable with the text. SO the question is how can I pass just a text string to the reg.find() command?


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