mIRC Homepage
Posted By: danielboom write to a file - 14/10/21 11:23 PM
alias rept {
var %xi = 1 | while (%xi <= $notify(%xi)) { set %Lista $notify(%xi) | inc %xi | grabar1 }
}

alias grabar1 {
write c:\i\mirc\files [ $+ [ Protect ] ] [ $+ [ .txt ] ] protect users %lista
}

i want save the notify list on file , how i do ?
Posted By: Epic Re: write to a file - 15/10/21 06:40 AM
Originally Posted by danielboom
i want save the notify list on file , how i do ?

You can try using a script like this:
Code
alias rept {
  var %nf_path = C:\i\mirc\files\list_notify.txt
  if ($exists(%nf_path)) .remove %nf_path
  var %xi 1 | while (%xi <= $notify(0)) { .write -i %nf_path $notify(%xi) | inc %xi }
  .echo -a 03The list notify has been compiled. Total:07 $lines(%nf_path) 03users.
}

To check, enter the command: "/rept".

For more information about the commands used in this script and how to use them correctly, you can read here:

    https://en.wikichip.org/wiki/mirc/commands/while or https://www.mirc.com/help/html/index.html?aliases.html#cmd_while
    https://en.wikichip.org/wiki/mirc/commands/write or https://www.mirc.com/help/html/index.html?mirc_commands.html#cmd_write
    https://en.wikichip.org/wiki/mirc/commands/notify or https://www.mirc.com/help/html/index.html?notify_list.html#cmd_notify
    https://en.wikichip.org/wiki/mirc/identifiers/$notify or https://www.mirc.com/help/html/index.html?nick_address_identifiers.html#id_$notify
    https://en.wikichip.org/wiki/mirc/identifiers/$lines or https://www.mirc.com/help/html/index.html?file_directory_identifiers.html#id_$lines

© mIRC Discussion Forums