Jump to content
Sign in to follow this  
lsakizada

Unicode and clipboard

Recommended Posts

lsakizada

The help says that it is possible to get UTF8 characters from the clipboard:

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.

Can someone please help to pass to the console the UTF8 characters according to the following script:

Local $MPos = MouseGetPos()
MouseClick('left', $MPos[0], $MPos[1], 2, 0)
Send('^c')
ConsoleWrite(ClipGet() & @LF)

Be Green Now or Never (BGNN)!

Share this post


Link to post
Share on other sites
Andreik

Look in help file about _ClipBoard_GetData() and $CF_UNICODETEXT format.


When the words fail... music speaks

Share this post


Link to post
Share on other sites
lsakizada

Look in help file about _ClipBoard_GetData() and $CF_UNICODETEXT format.

Thats return empty string. It does not return the locale characters.

Thanks for the response

EDIT: BTW the _ClipBoard_IsFormatAvailable($CF_UNICODETEXT) is available on my machine.

Edited by lsakizada

Be Green Now or Never (BGNN)!

Share this post


Link to post
Share on other sites
Andreik

Thats return empty string. It does not return the locale characters.

Thanks for the response

EDIT: BTW the _ClipBoard_IsFormatAvailable($CF_UNICODETEXT) is available on my machine.

Try another format, maybe one of them work fine.

When the words fail... music speaks

Share this post


Link to post
Share on other sites
lsakizada

Sorry for BUMPING it up, but I realy need help on this one.

Can someone help with simple scrit to prove that the cliboard functions can read and write locale string?

Thanks.

Edited by lsakizada

Be Green Now or Never (BGNN)!

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.