[request] want to be able to type() any unicode character

Bug #1299462 reported by RaiMan
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
High
RaiMan

Bug Description

****** base for a solution on Windows, Mac and most Linux
this post summarises the keyboard actions needed to enter a unicode character based on its hex code:
http://superuser.com/questions/13086/how-do-you-type-unicode-characters-using-hexadecimal-codes

this all can be simulated with a Java AWT Robot keyboard action
--------------------------------------------------------------------------

Today I found that UTF-8 characters aren't supported by type(). I got following error in my java tests:

Exception in thread "main" java.lang.IllegalArgumentException: Cannot convert character Д
 at org.sikuli.script.Key.toJavaKeyCode(Key.java:319)
 at org.sikuli.script.RobotDesktop.typeChar(RobotDesktop.java:234)
 at org.sikuli.script.Region.keyin(Region.java:2748)
 at org.sikuli.script.Region.type(Region.java:2613)
 at kz.vas.emulator.whatsapp.WhatsAppSender.main(WhatsAppSender.java:22)

I found many questions on the portal concerning this situation and understand that for type() I must use ASCII or use paste() to past UTF-8 symbols. However, I'm testing android app on the emulator and there is no option to use past(), and type() is the only option to input text (as I may suppose).

So, my question is: is there any opportunities to input text using sikuli to android apps? Perhaps, you know additional resources which I can include to my project?

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.2.0
description: updated
description: updated
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.