已经好了,非常感谢 yu2n 坛友 | | | WScript.Sleep 3000 | | | | Dim wso, objHTML, strClipboardText | | Set wso = CreateObject("Wscript.Shell") | | Set objHTML = CreateObject("htmlfile") | | strClipboardText = objHTML.ParentWindow.ClipboardData.GetData("text") | | | | | | | | | | | | wso.SendKeys "^v" | | wso.SendKeys "~" | | | | | | Dim i, strKey | | If Not strClipboardText = "" Then | | For i = 1 To Len(strClipboardText) | | | | strKey = Mid(strClipboardText, i, 1) | | WScript.Sleep 300 | | | | If ASCW(strKey) > 0 And ASCW(strKey) < 127 Then | | | | If InStr("+^%~", strKey) > 0 Then strKey = "{" + strKey + "}" | | | | wso.SendKeys strKey | | End If | | Next | | End If | | | | Set wso = Nothing | | Set objHTML = NothingCOPY |
|