mIRC Home    About    Download    Register    News    Help

Print Thread
write to a file #269489 14/10/21 11:23 PM
Joined: Mar 2021
Posts: 25
D
danielboom Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2021
Posts: 25
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 ?

Re: write to a file [Re: danielboom] #269490 15/10/21 06:40 AM
Joined: Jan 2012
Posts: 180
Epic Offline
Vogon poet
Offline
Vogon poet
Joined: Jan 2012
Posts: 180
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



🅸🆁🅲 - 𝔦'𝔱𝔰 𝔸 𝕂𝖎ɴ𝙙 ᴏ𝙛 𝕄𝙖𝖌𝙞𝙘