龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 软件开发 > VB开发 >

用vbs实现将剪切板的unix格式的内容处理成pc格式的代码

时间:2014-07-03 02:05来源:网络整理 作者:网络 点击:
分享到:
用vbs实现将剪切板的unix格式的内容处理成pc格式的代码
处理QQ里复制的文本'复制QQ里的文本到记事本有事可能会有黑框框...(请复制后运行本脚本)

set ws=createobject("wscript.shell")
set fso=createobject("scripting.filesystemobject")
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate("about:blank")
s = objIE.document.parentwindow.clipboardData.GetData("text")
objie.quit
set file=fso.createtextfile("tmp.txt")
file.write s
file.close
ws.run "cmd /c more tmp.txt>test.txt",0,true
fso.deletefile "tmp.txt"
ws.run "notepad.exe test.txt"
精彩图集

赞助商链接