返回列表 发帖
用 more 就好:
  1. @more +48 1.txt
复制代码

TOP

回复 21# pengyou86


有clip命令的话可以如此:
  1. @more +48 1.txt|clip
复制代码
xp可以如此(借鉴demon的vbs方案):
  1. @set @n=0;//&goto bat
  2. var Form = new ActiveXObject('Forms.Form.1')
  3. with(Form.Controls.Add("Forms.TextBox.1").Object)
  4. {
  5. MultiLine = true
  6. Text = WScript.StdIn.ReadAll()
  7. SelStart = 0
  8. SelLength = TextLength
  9. Copy()
  10. }
  11. /*
  12. :bat
  13. @more +48 1.txt|cscript -e:jscript %0
  14. pause
  15. :*/
复制代码

TOP

来个ahk:
  1. text := ""
  2. Loop, Read, 1.txt
  3.    if (A_Index>48)
  4.       text := text A_LoopReadLine "`r`n"
  5. clipboard := text
  6. return
复制代码
au3 和 ahk 处理人机交互真给力

TOP

本帖最后由 CrLf 于 2014-1-26 02:39 编辑

是这意思吧:
  1. @set @n=0;//&goto bat
  2. var Form,i,str=''
  3. for(i=0;i<3;i++)str+=WSH.StdIn.ReadLine()+'\r\n'
  4. with(new ActiveXObject('Forms.Form.1').Controls.Add("Forms.TextBox.1").Object)
  5. {
  6.         MultiLine = true
  7.         Text = str
  8.         SelStart = 0
  9.         SelLength = TextLength
  10.         Copy()
  11. }
  12. WSH.Echo(WSH.StdIn.ReadAll())
  13. /*
  14. :bat
  15. @<1.txt cscript -nologo -e:jscript %0|sort /+9999|sort /+9999 /o 1.txt
  16. pause
  17. :*/
复制代码
要求有变动最好也能更新到顶楼
1

评分人数

TOP

回复 32# pengyou86


    已修改

TOP

返回列表