mIRC Home    About    Download    Register    News    Help

Print Thread
#216040 22/10/09 06:46 AM
U
unable
unable
U
There is a file - text.txt it is needed to find in him a "word" and to substitute him by a "word 1" and to save...
ps Means mIRC script
Thanks

#216041 22/10/09 07:17 AM
5
5618
5618
5
Untested.

Put this in the Script Editor, Alt+R. Type /replacetxt to start the script.
Code:
alias replacetxt {
  var %file = $qt($sfile($mircdir)), %x = 1
  while ($read(%file,w,*word*,%x)) {
    var %x = $readn
    write -l $+ %x %file $replace($v1,word,word 1)
  }
}

#216042 22/10/09 06:26 PM
5
5618
5618
5
Oh, I forgot to edit it btw, but it should be:
Code:
var %x = $calc($readn +1)

#216043 22/10/09 10:38 PM
Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
var %x = $readn + 1 ($calc isn't needed)

argv0 #216045 23/10/09 05:50 AM
U
unable
unable
U
Thanks


Link Copied to Clipboard