Sikuli - Using special characters with type()

Asked by Sarath

Hi All

I am trying to send #65FY using type() or passte()

Both returns £65FY instead of #65FY

I used type("#65FY") and paste("#65FY") Both does not send #65FY

I would very grateful to you, if any of you could help me in this ?

 With thanks and regards, Sarath

Question information

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

paste("#65FY") definitely works.

for type() see faq 933 for non US-qwerty keyboards.

On my german keyboard for example:
type("\\65FZ")
types the wanted string, means:
on my german keyboard the # is where on the US keyboard is the \
same goes for Y and Z

many cases can be solved this way if you compare your keyboard layout with the US layout.

Revision history for this message
Sarath (sarath-hettige) said :
#2

Hi Raimund,

Many thanks, actually Paste() woked, and I will follow what you have suggested me for type(). (I forgot to metion that I was using the UK key board, I should have mentioned this in my question !!)

With regards, Sarath