Yogi Yang Posted May 18, 2008 Posted May 18, 2008 (edited) I am trying to send the following string to MS Word 2003 : "{ENTER}--- {ASC 2693} --- {ASC 0xA95} --- {ENTER}" It is showing square blocks instead of Unicode characters. If I add these characters using Insert->Symbol in MS Word these characters are showing perfectly without any problems. What must be the problem? Thanks, Yogi Yang Edited May 18, 2008 by Yogi Yang
herewasplato Posted May 21, 2008 Posted May 21, 2008 You did not state what AutoIt function you were using to "send" the unicode...Look here for some limitations...http://www.autoitscript.com/forum/index.ph...st&p=474037If you knew that and are already using something other than "Send", post some code that shows the problem. [size="1"][font="Arial"].[u].[/u][/font][/size]
Administrators Jon Posted May 21, 2008 Administrators Posted May 21, 2008 You could try something like: ClipPut("Unicode text") Send("^v") Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Yogi Yang Posted May 21, 2008 Author Posted May 21, 2008 You did not state what AutoIt function you were using to "send" the unicode...Look here for some limitations...http://www.autoitscript.com/forum/index.ph...st&p=474037If you knew that and are already using something other than "Send", post some code that shows the problem.Thanks for the link.I am basically trying to use AutoITX.dll from VB to send a few UNICODE characters to MS Word. I have tried with Send as well as ControlSend but both are not working. As per documentation if we want to send UNICODE characters to a Unicode enabled application we should use ASC function:To send UNICODE characters enter the character code (decimal or hex), for example this sends a Chinese character Send("{ASC 2709}") or Send("{ASC 0xA95}")Lastly how can I put UNICODE characters on clipboard?
Administrators Jon Posted May 21, 2008 Administrators Posted May 21, 2008 Just type them in normally - make sure the script file is stored as UTF8 or 16. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now