Jump to content

Send() & UTF-8


PiroX
 Share

Recommended Posts

Hi guys

I have a problem.

I want to send russian letters to a window, example text editor

If i make a simple script which shall send

Send("Лиландор",1) or Send("Лиландор",0)

it sends

ЛиланÐоѴ€

i saved the file as utf-8 with scite, i also forced utf-8 in scite options. I can save the file as utf8 but it still doesn't send utf-8 keys.

i also tested: Send(_WinAPI_WideCharToMultiByte("Лиландор",65001))

but this sends nothing

i have autoit 3.2.12.1

any ideas?

Edited by PiroX
Link to comment
Share on other sites

i am not sure how to solve this by heart, but i did it long ago.

try my programs "RosettaStone" and "UnicodeKeyboard" in my signature. they send keys in all unicode languages. i am sure you find the answer in the code.

j.

Spoiler

I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.OixB7.jpgDon't forget this IP: 213.251.145.96

 

Link to comment
Share on other sites

i am not sure how to solve this by heart, but i did it long ago.

try my programs "RosettaStone" and "UnicodeKeyboard" in my signature. they send keys in all unicode languages. i am sure you find the answer in the code.

j.

i will check that out

ty

Link to comment
Share on other sites

Current Limitations

There are a few parts of AutoIt that don't yet have full Unicode support. These are:

Send and ControlSend - Instead, Use ControlSetText or the Clipboard functions

i got it

u used chrw(hexnr) to sent that keys

i'm currently coding a function which replace those russian letters with the unicode nr and use clipput and ^v , thx 4 your help

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...