Key combination use the include alphanumeric chars

Asked by Yoav s

Hi all

I tried to use shortcuts, the one with only special chars are ok but when I try to use a combination key like: Ctrl+n (new doc)

it just doesn't work:

type("n",Key.CTRL)
(or any other combination with type that I could think of)

this combination works just when the application are in some state and not for all:
keyDown(Key.CTRL)
type("n")
keyUp(Key.CTRL)

is this could be solved?

I didn't find my Google answer to this question since most of the workarounds included an alternate special keys only...

thanks!

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
Yoav s (yoavws) said :
#1

running on windows 7
found that numLock influence Sikuli's work??

Revision history for this message
eliteSKL (camaro70s) said :
#2

type("n", KEY_CTRL)

Revision history for this message
eliteSKL (camaro70s) said :
#3

make sure num lock, caps lock, and scroll lock are off.

Can you help with this problem?

Provide an answer of your own, or ask Yoav s for more information if necessary.

To post a message you must log in.