how to press a single key using key class methods

Asked by K.AnveshVarma

 using single key

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

ever looked into the reference guide? ;-)
http://sikuli.org/trac/wiki/reference-0.10

--- 1:
type("x", KEY_CTRL) # presses and releases the key x (on US qwerty keyboard!) together with the ctrl/strg key.

--- 2:
keyDown(Key.CTRL) # presses and holds
keyDown("x") # presses and holds
keyUp("x") # releases x, if pressed and held
keyUp() # releases all key that are currently pressed and held

Can you help with this problem?

Provide an answer of your own, or ask K.AnveshVarma for more information if necessary.

To post a message you must log in.