mIRC Home    About    Download    Register    News    Help

Print Thread
#148933 11/05/06 10:56 PM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
hi again, just wanted to know if it was possible to write all my remotes to a .txt file..for example, if I were to put this into remotes:
Code:
on *:TEXT:*hi*:#chan: {
msg $chan hello $nick 
}

it would automatically send it to a .txt file.. (C:\File.txt) please help if this is possible, thanks.


-Kurdish_Assass1n
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Do you mean..

Code:
on *:TEXT:*hi*:#chan: {
  msg $chan hello $nick 
  write $+(",$mircdirsomefile.txt,") $+(<,$nick,>) $1-
}


I get you want to write it but the way you described it that seems to be what you want. If not could you clarify a bit more?

Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
no, what I mean is if I press this ALT+R and go to remotes section, and I put this in:
Code:
on *:TEXT:*hi*:#chan: {
msg $chan hello $nick
}

then it would put that script into a file called C:\Remotes.txt

(the reason I am doing this, is so I don't have to update a txt file all the time, and because someone messed up my IRC, and all of my remotes are gone, i don't want it to happen again, thanks.


-Kurdish_Assass1n
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Quote:

on EXIT

The on EXIT event triggers when mIRC itself is closed.


Format: on <level>:EXIT:<commands>
Example: on 1:EXIT:/echo exiting mIRC!

Examples

The main purpose of this command is to allow scripts to exit cleanly, unset variables, save settings, etc. when mIRC exits.


so if there is one specific remote file
on *:exit:copy -o myremotes.mrc c:\script\myremotes.txt

with multiple files they could all be copied to the c:\scripts using $readini and $scripts(0)

Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
heh, thanks man, messed with it a little, and got it to work, thanks again. and how would I log a @window?

Last edited by Kurdish_Assass1n; 12/05/06 04:22 AM.

-Kurdish_Assass1n
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
/log on @window

Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
using the "on *:exit"...
would it still work if the computer is turned off, while IRC was still running?


-Kurdish_Assass1n
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Yeah it would, i mean we all know mirc has magical powers to keep the pc going when you turn the power off, so even then it would still be able to run, becuase mirc doesnt need the pc on to work.

( please note the sarcasim)

If you want to have it save regually, have it start a timer that saves what ever your saving.


Link Copied to Clipboard