http://tw.knowledge.yahoo.com/question/question?qid=1608090100830

小弟想寫blog 將文章放在123.txt的檔案內,如何讀取內容 再貼到部落格里,
可是小弟想用讀檔案的方式 來貼
另外指定 讀取路徑 c:\123.txt 的文章 嗎??

提供按鍵精靈6.71版,範例腳本參考如下:

VBS Dim fso,myfile,filename
//設置語句文件的詳細路徑
VBS filename="c:\123.txt"
//設置外部函數
VBS set fso=CreateObject("Scripting.FileSystemObject")
//以讀的方式打開
VBS set myfile=fso.opentextfile(filename,1)
// 內容全部讀入
VBS strdate=myfile.readall
VBS myfile.close
// 將內容寫入剪貼簿
VBS Set objIE = CreateObject("InternetExplorer.Application")
VBS objIE.Navigate("about:blank")
VBS objIE.document.parentwindow.clipboardData.SetData "text", strdate
VBS objIE.Quit
// 按Ctrl + V,貼上文字
Delay 1000
KeyDown 17,1
KeyPress 86,1
KeyUp 17,1


arrow
arrow
    全站熱搜

    魔幻小鱉 發表在 痞客邦 留言(9) 人氣()