Jump to content
Sign in to follow this  
PiroX

Send() & UTF-8

Recommended Posts

PiroX

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

Share this post


Link to post
Share on other sites
jennico

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

 

Share this post


Link to post
Share on other sites
PiroX

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

Share this post


Link to post
Share on other sites
PiroX

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

Share this post


Link to post
Share on other sites
jennico

i'm glad to help you.

now that you tell me, i remember. i used the clipboard, that's right. ;)


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

 

Share this post


Link to post
Share on other sites
PiroX

lol

i just set scite option to utf-8 with bom and clipput send with russian letters worked -.- omfg

Edited by PiroX

Share this post


Link to post
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
Sign in to follow this  

×