New question #156443 on Sikuli:
https://answers.launchpad.net/sikuli/+question/156443

  I used the paste function to input the chinese to notepad in jruby script 
,but it can't be correct in the notepad. they are  distorted Character Code , 
the script as follow:
require 'rubygems'
require 'java'
require 'iconv'

java_import "org.sikuli.script.SikuliScript"
java_import "org.sikuli.script.Region"
java_import "org.sikuli.script.Screen"
java_import "org.sikuli.script.App"


screen=Screen.new
App.focus("notepad")
sleep(1)
str = "梅西"
sleep(2);
screen.paste("1.png",str)


but it is correct when I use paste function in sikuli IDE ,the script as fellow:

App.focus("notepad")
sleep(3)
paste( ,"梅西")





-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to