Send> with unicode text

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Jedt3D
Newbie
Posts: 10
Joined: Mon Jul 04, 2016 5:50 am

Send> with unicode text

Post by Jedt3D » Mon Jul 04, 2016 6:02 am

Can I use Send> command with Unicode text ?
:shock:

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

Re: Send> with unicode text

Post by Marcus Tettmar » Mon Jul 04, 2016 1:30 pm

Yes.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

Jedt3D
Newbie
Posts: 10
Joined: Mon Jul 04, 2016 5:50 am

Re: Send> with unicode text

Post by Jedt3D » Mon Jul 04, 2016 4:15 pm

@Marcus

Sorry for some kind of strange question. But I have tested without success.

here is sample code for WordPad.exe

Code: Select all

//Run WordPad
Run>C:\Program Files\Windows NT\Accessories\WordPad.exe
//Wait for Notepad to be ready
WaitWindowOpen>Document - WordPad
Wait>3
//Send some text
Let>WLN_ENCODING=UNICODE
Send>ทดสอบภาษาไทยกล้ามเนื้อหัวใจขาดเลือด
  • Tried with Notepad, Sublime Text 2, font is not display in Thai language
  • Tried with WordPad, it can display in Thai but seems like only half of the Thai sentence is sent.
  • It show like "ล้ามเนื้อหัวใจขาดเลือด" not the full sentence. Don't know why.
Could you help me please.

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

Re: Send> with unicode text

Post by Marcus Tettmar » Tue Jul 05, 2016 10:28 am

As you can see from the screenshot below it works well for me:

Image

Which OS 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?

Jedt3D
Newbie
Posts: 10
Joined: Mon Jul 04, 2016 5:50 am

Re: Send> with unicode text

Post by Jedt3D » Tue Jul 05, 2016 2:06 pm

Hi Marcus

Thank you for you testing.
I've used Win 7 32 bit running on VMWare Fusion.
Not sure if it's a source of laggy and incomplete typing.

Wonder how can you get the notepad working. Which font?
Or it'd work if it's Win 10 ?

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

Re: Send> with unicode text

Post by Marcus Tettmar » Tue Jul 05, 2016 2:07 pm

If it is laggy typing then you can simply slow down the key send rate:

//e.g. add 50ms delay between chars
Let>SK_DELAY=50
Send>ทดสอบภาษาไทยกล้ามเนื้อหัวใจขาดเลือด

See if that helps.

The font shouldn't make any difference. I happen to be using Windows 10 in my screenshot.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

Jedt3D
Newbie
Posts: 10
Joined: Mon Jul 04, 2016 5:50 am

Re: Send> with unicode text

Post by Jedt3D » Tue Jul 05, 2016 4:21 pm

Hi again

Old msg: Well, a bit embarrassing. It's just work now.
Not sure but after I uninstall Macro Toolworks Pro trial and reboot.
It just work. May be or may be not the cause but I can confirm that it works on both Win 7 and Win 10 as expected.


Update : I have tried to reboot my Win 7 and test it again. It's not working anymore on NotePad or plain text field in any app. WordPad, MS Word 2007 works fine.
I don't know the cause yet. But on Win 10 it works fine both applications.

I've tested with the latest trial version 14.3 but still not work. My version is Pro 14.2.02

Thank you very much Marcus for taking a look in to my problem.

Image

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

Re: Send> with unicode text

Post by Marcus Tettmar » Thu Jul 07, 2016 12:22 pm

This is running 14.3 on Windows 7 - works fine:

Image

I think there must be something wrong with either your font settings or locale settings.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

Jedt3D
Newbie
Posts: 10
Joined: Mon Jul 04, 2016 5:50 am

Re: Send> with unicode text

Post by Jedt3D » Thu Jul 07, 2016 5:20 pm

Dear Marcus

You give me the answer :D

Well, Switch back from Thai --> English for some Region setting make it work!.

For the record, any people who may stuck to this kind of problem. Please look at my screenshots.
Region Format.png
Region Location.png
Region Administrative.png

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