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.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp