← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #195920]: Can't get the Command key combos to work (Mac OS Lion, VMWare)

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
when using type for keyboard shortcuts like cmd-w, you have to use
lowercase characters, because using uppercase characters adds an
additional shift to the modifiers, so

type("W", KeyModifier.CMD)

finally simulates a shift-cmd-w.

BTW: + works for KeyModifiers on my Mac, e.g.

type("W", KeyModifier.CMD)

is same as

type("w", KeyModifier.SHIFT + KeyModifier.CMD)

for closing a Safari window (cmd+w closes a tb in a window)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.