用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"
如对本文有疑问,
点击进行留言回复!!
相关文章:
-
-
-
-
-
-
用vbs实现文本循环读取
因为测试中需要读取一批url数据进行浏览,其实使用qtp本身的table能实现多种读取方式,但是因为需要tabel是使用excel保存的,在没有...
[阅读全文]
-
-
-
-
-
网友评论