MsgBox Ascw("²")
保存的时候要unicode编码。
保存的时候要unicode编码。
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
Originally posted by plp626 at 2008-4-21 11:43 PM:
zh159强,羡慕一个!
------------------------------------------
start charmap
里面什么都有啊
Originally posted by slore at 2008-4-22 03:45 AM:
str = InputBox("输入要查询的字符串","Alt"
麻烦大虾把上面的改成双向查询,再弄个传到剪贴版功能,好吗
MsgBox Ascw("²") 怎么么弹出的还是2呀,我不保存的
²好像能复制粘贴的
Title = "Alt查询器 By Slore"
Mode = MsgBox("查询ANSI编码选,Unicode选",vbYesNo + 64,Title)
strIn = InputBox("请输入要查询的字符串。" & vbCrLf & "反查以'开头,"";""为间隔符",Title)
If strIn = "" Then MsgBox "谢谢使用此Alt查询器!再见~",64,Title:Wscript.Quit
If Mode = 6 Then
If Left(strIn,1) = "'" Then
strIn = Mid(strIn,2)
strWord = Split(strIn,";")
For i = 0 To UBound(strWord)
txtOut = txtOut & Chr(strWord(i)) & ":" & strWord(i) & " "
Next
Else
For i = 1 To Len(strIn)
strChar = Mid(strIn,i,1)
Ascii = Asc(strChar)
If Ascii < 0 Then Ascii = Ascii + &H10000
txtOut = txtOut & strChar & ":" & Ascii & " "
Next
End If
Else
If Left(strIn,1) = "'" Then
strIn = Mid(strIn,2)
strWord = Split(strIn,";")
For i = 0 To UBound(strWord)
txtOut = txtOut & ChrW(strWord(i)) & ":" & strWord(i) & " "
Next
Else
For i = 1 To Len(strIn)
strChar = Mid(strIn,i,1)
Ascii = AscW(strChar)
If Ascii < 0 Then Ascii = Ascii + &H10000
txtOut = txtOut & strChar & ":" & Ascii & " "
Next
End If
End If
ret = MsgBox(txtOut,vbYesNo + 64,"是否复制到剪切板上?")
If ret = 7 Then Wscript.Quit
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = False:objIE.Navigate("about:blank")
objIE.Document.parentwindow.clipboardData.SetData "text", txtOut
objIE.Quit:Set objIE = Nothing