object 'Env' has no attribute 'addHotKey'

Asked by Travis Richter on 2018-11-19

Hi,
just download the latest version of SikulixIDE-1.1.4-SNAPSHOT

after running the IDE, creating a script with the following line:
Env.addHotKey(Key.F1, KeyModifier.CTRL, runHotKey)
I get this error:
object 'Env' has no attribute 'addHotKey'

The Env.py file has the following class within it
class Env(JEnv):
    @classmethod
    def addHotkey(cls, key, modifiers, handler):

the support documentation references the syntax :
Env.addHotkey(key, modifiers, handler)

Please let me know where I have gone astray.

Stingfuse

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-11-19
Last reply:
2018-11-19
masuo (masuo-ohara) said : #1

It is due to mistyping of capital letters and lower case letters.
addHotkey
addHotKey

Can you help with this problem?

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

To post a message you must log in.