Send> Lack of Unicode Support

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Send> Lack of Unicode Support

Post by armsys » Tue Mar 26, 2013 1:25 am

With the current version 14.0.6, after years, regrettably, Send> remains unable to support unicode UTF-8, UTF-16 little endian, Windows 950,....etc.
For example, the following command fails:
Send>²Ó©úÅé
Please help. Thanks in advance.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Mar 28, 2013 2:19 pm

Hi,

Send is unicode compatible. Except where stated all of Macro Scheduler's functions are unicode compatible. It has been since version 11.

I have no problems:

Image

Of course this depends on the target app being able to accept the unicode characters.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Thu Mar 28, 2013 2:41 pm

Marcus Tettmar wrote:Hi,
Send is unicode compatible. Except where stated all of Macro Scheduler's functions are unicode compatible. It has been since version 11.
I have no problems:
Image
Of course this depends on the target app being able to accept the unicode characters.
Thanks for your working demo.
Nonetheless, I replicate your code but fail.
It just can produce the Chinese characters in Notepad like you did.
It fails even though I deliberately set Chinese as the Default Input Language in Text Service and Input Languages Window.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Mar 28, 2013 10:08 pm

Which version of Windows are you using?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Thu Mar 28, 2013 10:29 pm

Marcus,
Thanks for your reply.
My OS:
Win 7 Ult (SP 1) 64-bit (6.1)
User Role: Admin
Sys Locale ID: 3076
Default ANSI Code Page: 1252
Active Code Page: 950 (ANSI/OEM - Traditional Chinese Big5)
DBCS Code Page: yes

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Thu Mar 28, 2013 10:34 pm

The current forum appears to disallow post modification.
My Thu Mar 28, 2013 10:41 pm HKT post contains the following typo:
It just can produce the Chinese characters in Notepad like you did.
It should read:
It just can't produce the Chinese characters in Notepad like you did.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Thu Mar 28, 2013 10:39 pm

The following is my code cloned from yours:

Code: Select all

Setfocus>Untitled - Notepad
Send>檢舉
But it produces j? instead of 檢舉.

hoangvo81
Pro Scripter
Posts: 69
Joined: Tue Feb 07, 2012 8:02 pm

Post by hoangvo81 » Sat Mar 30, 2013 8:00 pm

copied your script and it sends the two chinese character to notepad without a problem.

i m using windows server 2008, x64 R2 standard and MS 14.0.3

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Sat Mar 30, 2013 8:33 pm

hoangvo81,
Thanks for confirming MS' support of Unicode.
What are your setting of system locale and default input language?
Thanks again for your help.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Sun Mar 31, 2013 2:20 pm

The following script works perfectly:
Setfocus>Untitled - Notepad
Send>檢舉
Setfocus>wordpad*
Send>檢舉

Not sure why Notepad fails.
Not sure what's the difference amongst Notepad, WordPad, and Word.

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

GetText Bugs

Post by armsys » Sun Mar 31, 2013 11:06 pm

This morning (4/1/2013 Mon 07:00 AM HKT) this forum disallows creating new threads.
So I append a new one here.
Lately I encounter another bug tormenting me for the last 6 months.
GetText has never worked for me.
The following code will generate a null result:
GetTextInit
GetWindowTextEx>Text Capture Component - GetWord - Mozilla Firefox,result
mdl>result

Yes, I notice GetWord_x64.exe (4,928K from http://www.TextCapture.com) is loaded successfully into memory.

In fact, with Text Capture Wizard, it doesn't show any found text for all kinds of windows.

Please help. Thanks.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Apr 01, 2013 5:52 pm

The text capture functions won't work with all windows. Not sure it copes with Firefox. It is a case of suck it and see. Point the wizard at various windows. Not all will return text (because not all use the Windows textOut functions to render text).
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1417
Joined: Sun Nov 03, 2002 3:19 am

Post by Dorian (MJT support) » Mon Apr 01, 2013 11:35 pm

[quote="armsys"]The following is my code cloned from yours:

Code: Select all

Setfocus>Untitled - Notepad
Send>žûÂ

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Tue Apr 02, 2013 2:38 am

Parsnipnose3000,
I remember you a long time ago.
Thanks for confirming Send>'s Unicode support.
I'll do more tests myself.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1417
Joined: Sun Nov 03, 2002 3:19 am

Post by Dorian (MJT support) » Tue Apr 02, 2013 3:34 am

Thank you. It's nice to be back.

I first started using Macro Scheduler in 1998. How time flies.

I still think it's the best software I ever bought.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts