mIRC Homepage
Posted By: unable Help - 22/10/09 06:46 AM
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
Posted By: 5618 Re: Help - 22/10/09 07:17 AM
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)
  }
}
Posted By: 5618 Re: Help - 22/10/09 06:26 PM
Oh, I forgot to edit it btw, but it should be:
Code:
var %x = $calc($readn +1)
Posted By: argv0 Re: Help - 22/10/09 10:38 PM
var %x = $readn + 1 ($calc isn't needed)
Posted By: unable Re: Help - 23/10/09 05:50 AM
Thanks
© mIRC Discussion Forums