China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-13 11:35
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Discussion] Wonderful Chinese in VBS... View 5,040 Replies 19
Original Poster Posted 2008-05-14 18:58 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Set WshShell = wscript.CreateObject("WScript.Shell"
MsgBox "Open calculator",,"Magic Chinese"
WshShell.Sendkeys "Pin"
MsgBox "Open Qianqian Jingting",,"Magic Chinese"
WshShell.Sendkeys "Pin"
MsgBox "Open My Computer",,"Magic Chinese"
WshShell.Sendkeys "Du"
Set WshShell = Nothing

Pin is OUTLOOK

Hope everyone finds more...
Best if someone can figure out the principle...
Floor 2 Posted 2008-05-14 19:01 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
There are tests...

Frequency

It seems to be of the media type... Without Qianqian opened real... I don't know what will happen without real...
Floor 3 Posted 2008-05-14 19:08 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Who says VBS's SENDKEYS doesn't support Chinese? It's just that the function... is too... magical...

Both "法" and "品" can open the calculator. Let's study it... While looking at the encoding...
Floor 4 Posted 2008-05-14 19:14 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Well, there's a bit of progress... Sure enough...

SENDKEYS doesn't support Chinese because Chinese uses 2 bytes to represent a character.

According to "法" and "品" both can open the calculator, so I checked their encodings, and they both have a byte of B7.

Then I tested the character "狈" which has the B7 encoding, and sure enough, it can open the calculator!

The other ones are not difficult to figure out, but why these encodings open the corresponding programs is another question.
Continue to explore...
Floor 5 Posted 2008-05-14 19:18 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Tested, the guess about "贩" is confirmed!

"贩" is stored in memory as: B7, B7
So after we run it, 2 calculators will be displayed!

The one containing the B6 byte will open My Computer.

It seems related to BX, I'll continue testing...
Floor 6 Posted 2008-05-14 19:20 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
B5 is a player... The ones known are indeed all containing the character B... Then I'll take a guess at what else there is.
Floor 7 Posted 2008-05-14 19:22 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
"Blow" is B4, B5...

So... you will open 2 things oh~~

Run it yourself to see what B4 is...
Floor 8 Posted 2008-05-14 19:29 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
It feels like SCANCODE...

There are some keys on the multimedia keyboard, like open homepage, volume, my computer...
Estimated to be them~ Need to eat, put it aside first.
Feels like it should be correct.

The other B ones don't respond when used...

Does the multimedia keyboard have my computer, email, media, homepage?
Seems like P is assigned...

Continue eating...

[ Last edited by slore on 2008-5-14 at 07:37 PM ]
Floor 9 Posted 2008-05-14 21:15 ·  中国 广西 南宁 电信
中级用户
★★
丶杏灬丶
Credits 280
Posts 105
Joined 2008-05-06 03:37
18-year member
UID 117858
Gender Male
From 广西
Status Offline
Strong......Leave a mark....How did you find it??
Floor 10 Posted 2008-05-14 21:21 ·  中国 广西 南宁 电信
中级用户
★★
丶杏灬丶
Credits 280
Posts 105
Joined 2008-05-06 03:37
18-year member
UID 117858
Gender Male
From 广西
Status Offline
WshShell.Sendkeys "频"
Floor 11 Posted 2008-05-14 23:02 ·  中国 北京 联通数据上网公共出口
银牌会员
★★★
Credits 1,287
Posts 634
Joined 2007-05-02 15:06
19-year member
UID 87277
Gender Male
From cmd.exe
Status Offline
Some information found.
It may not match due to encoding issues.
Windows Multimedia Scan Codes:
TYPE 2:
Key Make Code Break Code
Next Track E0, 19 E0, 99
Previous Track E0, 10 E0, 90
Stop E0, 24 E0, A4
Play/Pause E0, 22 E0, A2
Mute E0, 20 E0, A0
Volume Up E0, 30 E0, B0
Volume Down E0, 2E E0, AE
Media Select E0, 6D E0, ED
E-Mail E0, 6C E0, EC
Calculator E0, 21 E0, A1
My Computer E0, 6B E0, EB
WWW Search E0, 65 E0, E5
WWW Home E0, 32 E0, B2
WWW Back E0, 6A E0, EA
WWW Forward E0, 69 E0, E9
WWW Stop E0, 68 E0, E8
WWW Refresh E0, 67 E0, E7
WWW Favorites E0, 66 E0, E6


TYPE 1:
Key Make Code Break Code
Next Track E0, 4D E0, F0, 4D
Previous Track E0, 15 E0, F0, 15
Stop E0, 3B E0, F0, 3B
Play/Pause E0, 34 E0, F0, 34
Mute E0, 23 E0, F0, 23
Volume Up E0, 32 E0, F0, 32
Volume Down E0, 21 E0, F0, 21
Media Select E0, 50 E0, F0, 50
E-Mail E0, 48 E0, F0, 48
Calculator E0, 2B E0, F0, 2B
My Computer E0, 40 E0, F0, 40
WWW Search E0, 10 E0, F0, 10
WWW Home E0, 3A E0, F0, 3A
WWW Back E0, 38 E0, F0, 38
WWW Forward E0, 30 E0, F0, 30
WWW Stop E0, 28 E0, F0, 28
WWW Refresh E0, 20 E0, F0, 20
WWW Favorites E0, 18 E0, F0, 18
Floor 12 Posted 2008-05-15 01:01 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Indeed, it is the function of a multimedia keyboard... The following are the tested functions.

Set WshShell = Wscript.CreateObject("Wscript.Shell")
'Demonstration character, 梅: C3B7, which contains the B7 byte and will open the calculator
WshShell.Sendkeys ""

'Function description:
'WshShell.Sendkeys "源" 'B4 OUTLOOK
'WshShell.Sendkeys "恋" 'B5 media player
'WshShell.Sendkeys "硕" 'B6 My Computer
'WshShell.Sendkeys "梅" 'B7 calculator

'WshShell.Sendkeys "血" 'AA search
'WshShell.Sendkeys "爽" 'AC IE homepage
'WshShell.Sendkeys "…" 'AD mute
'WshShell.Sendkeys "爱" 'AE decrease volume
'WshShell.Sendkeys "怜" 'AF increase volume

Set WshShell = Nothing

Those interested can test more characters...
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
tireless +5 2009-02-19 11:46
everest79 +11 2009-02-23 19:27
Floor 13 Posted 2008-05-15 03:04 ·  中国 广东 广州 海珠区 电信
初级用户
Credits 29
Posts 14
Joined 2007-05-22 04:46
19-year member
UID 88948
Gender Male
Status Offline
Interesting, hehe~~~
Thanks for sharing.!
Floor 14 Posted 2008-05-17 01:15 ·  中国 山东 滨州 沾化区 联通
新手上路
Credits 16
Posts 8
Joined 2008-04-22 20:08
18-year member
UID 116630
Gender Male
Status Offline
Interesting haha!!!!!
Floor 15 Posted 2009-02-19 11:14 ·  中国 山西 忻州 电信
初级用户
★★
Credits 87
Posts 63
Joined 2008-08-23 11:28
17-year member
UID 123947
Gender Male
Status Offline
Strong! This can be discovered too
Forum Jump: