← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #689296]: type(Key.F4, Key_ALT) is throwing an error

 

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

    Status: Open => Answered

Manfred Hampl proposed the following answer:
Read the documentation and check your error message.

https://sikulix-2014.readthedocs.io/en/latest/keys.html#key-modifiers-modifier-keys
For parameter 2 there are 2 options:
•new version: (a key is a key ;-): Key.XXX
•old version (kept for upwards compatibility): KeyModifier.XXX
… and these early versions should not be used anymore KEY_ALT, KEY_CTRL, KEY_SHIFT, KEY_WIN, KEY_CMD, KEY_META

Key_ALT has never existed.
Use Key.ALT instead.

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