how to use sharp (#) key in type() function

Asked by ace.bihi

Hi, someone know how to use sharp key in type function.
I want to do something like: type ("##########")

i know that in sikuli to simulate pressing Command key ( Mac) i have to do something like : type (Keys.CMD). and my question is what about Sharp key (#), should i do something like Keys.Sharp (or Keys.HASH because in python, sharp key is represented by K_HASH keycode)

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

-- 1. see faq 933 (typing special characters)

-- 2. type(Keys.CMD) is wrong (modifier keys cannot be typed, only pressed with keyDown())
see docs for details: http://sikuli.org/docx/keys.html#key-constants

-- 3. Python keycodes
cannot be used with Sikuli, since the interpreter is Jython and the access to the keyboard is done through the underlying Java classes.

Can you help with this problem?

Provide an answer of your own, or ask ace.bihi for more information if necessary.

To post a message you must log in.