sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #43640
Re: [Question #656821]: working on utf8 character where browser disable paste function
Question #656821 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/656821
Status: Open => Answered
Roman Podolyan proposed the following answer:
AFAIK there are Unicode input codes, alt + dddd where d is digit (0-9).
See here: ( http://www.utf8-chartable.de/unicode-utf8-table.pl?utf8=dec
)
I'd try to write custom function to enter symbols I want used keyUp and
keyDown (alt down , 3 numbers up-down, gotcha).
Here is code which I use to type "§" character to text editor AkelPad (Windows) 5 times.
_______
#moving mouse out of menu area and clicking
mouseMove(100,100)
click()
# Doing our key sequence (typing character 3 times)
for i in range(0,5):
keyDown(Key.ALT)
keyDown(Key.NUM0)
keyUp(Key.NUM0)
keyDown(Key.NUM1)
keyUp(Key.NUM1)
keyDown(Key.NUM6)
keyUp(Key.NUM6)
keyDown(Key.NUM7)
keyUp(Key.NUM7)
keyUp(Key.ALT)
________
Try it with your browser (modify code to move to the text field), then look for the code you need for that symbol.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.