how to path an image to a function

Asked by andrwi

I am trying to write a function:

def typeTxt(region, element, text):
          a = reg.find(element)
          click(a)
          type(text)

region = find(image_Of_region.png)
element = image_of_textBox.png
text = "Text"
typeTxt(region, element, text)

Running the script it cannot find " element" in the function is not found.
where is my mistake?
how to path region and image of text box to function?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

the image filenames have to be with apostrophe (strings)

Can you help with this problem?

Provide an answer of your own, or ask andrwi for more information if necessary.

To post a message you must log in.