How to use the Key Modifiers?

Asked by Gary Lee

Key Modifiers:
Methods where key modifiers can be used include: click(), dragDrop() , doubleClick() , rightClick(), type().In those functions the parameter(modifiers) how to use the modifiers?In what aspects and under what circumstances the modifiers can be utilized?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

I just looked at the docs: http://sikuli.org/docx/keys.html

and I admit, there should be some examples ;-)

# close a window in Windows
type(Key.F4, KEY_ALT)

# type ctrl-alt-esc
type(Key.ESC, KEY_CTRL + KEY_ALT)
or equivelant
type(Key.ESC, KEY_CTRL | KEY_ALT)

hope it helps.

Can you help with this problem?

Provide an answer of your own, or ask Gary Lee for more information if necessary.

To post a message you must log in.