Error running Hello World example in SikulixIDE-2.0.5 on Windows 10

Asked by blahpers

Yup, it's Yet Another Hello World failure!

Going by the documentation, I fired up SikulixIDE, saved a blank file as 'hello.sikuli', and typed in

click()
type("howdy")

I used Take Screenshot to insert an image into the click() parentheses, then tried running the script, only to get the following:

Exception in thread "Thread-38" Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\blahpers\Documents\sikuli.sikuli\sikuli.py", line 1, in <module>
    click("1697844140725.png")
NameError: name 'click' is not defined
null/null/null
null/null/null

Not sure what went wrong.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
blahpers
Solved:
Last query:
Last reply:
Revision history for this message
blahpers (blahpers) said :
#1

Nevermind, somehow it was including a previous version of the script and acting weird. I wiped everything and started from scratch and it worked fine.