mIRC Home    About    Download    Register    News    Help

Print Thread
#130516 19/09/05 10:47 AM
Joined: Mar 2005
Posts: 46
P
Pariah Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2005
Posts: 46
I don't know if it's possible to do or not, but is there any way I can automate saving the URL List to a .txt file?

#130517 19/09/05 12:06 PM
Joined: Nov 2003
Posts: 157
Vogon poet
Offline
Vogon poet
Joined: Nov 2003
Posts: 157
The URLs list is in $mircdir named urls.ini usually.

#130518 19/09/05 12:25 PM
Joined: Mar 2005
Posts: 46
P
Pariah Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2005
Posts: 46
yes, but it doesn't update unless I do it manually... ala alt+u right click > save as...

#130519 19/09/05 02:58 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Hello again buddy, you could always do something like this and just add it in a timer.. smile

Code:
alias urls {
  filter -cff urls.ini somefile.txt 
  var %x = 1,%f = somefile.txt
  while (%x <= $lines(%f)) {
    if ($gettok($read(%f,%x),2,$asc(=))) write $+(-l,$readn) somefile.txt $v1
    if (%x == $lines(%f)) url -l somefile.txt
    inc %x
  }
}


-andy

#130520 19/09/05 03:36 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
If the url list is large then using /write so many times will be very slow, I'd use something like this instead:

Code:
alias urls {
  .fopen -no urls $+(",$remove($1-,"),")
  filter -fk urls.ini addurl
  .fclose urls
}
alias addurl {
  if ([*] !iswm $1-) .fwrite -n urls $gettok($1-,2,61)
}


/urls <file>

#130521 19/09/05 10:56 PM
Joined: Mar 2005
Posts: 46
P
Pariah Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2005
Posts: 46
thank you for the suggestions, however the list within mIRC doesn't update to a file on it's own, so filtering the old saved list isn't doing much good unfortunately. I guess I'll just have to use an alternative catching method so the file's stay up to date...

#130522 20/09/05 03:34 AM
Joined: Mar 2005
Posts: 46
P
Pariah Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2005
Posts: 46
I should really have read the help file lol. /url -s urls.txt

#130523 20/09/05 03:44 AM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
heh looks like everybody should've read the help file wink

#130524 20/09/05 03:58 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
* Andy hangs his head in shame.

-Andy


Link Copied to Clipboard