mIRC Home    About    Download    Register    News    Help

Print Thread
#127473 14/08/05 01:00 AM
W
WarlockW
WarlockW
W
I would Like To do : /links

and out put this to a file ...

Help ?

#127474 14/08/05 01:23 AM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
This code goes into the Scripts editor, tab "Remote".

Code:
raw 364:*: .fwrite -n links $2- | halt
raw 365:*: .fclose links | halt
[color:red]  [/color] 
alias links {
  var %e = echo -ac info * /links: 
  if (!$server) { %e not connected to server | return }
  if ($fopen(links)) .fclose links
  .fopen -o links links.txt 
  if ($ferr) { %e error opening links.txt | return }
  !links
} 

This will write the links information to links.txt in your main mIRC folder. It will no longer open the Links window. If you still want to see the window, remove the halt from the second raw.

#127475 14/08/05 01:26 AM
Joined: Aug 2005
Posts: 128
S
Vogon poet
Offline
Vogon poet
S
Joined: Aug 2005
Posts: 128
Code:
alias links2 {
  set %writetof 1
  .remove links.txt
  !links
}
raw 364:*:if (%writetof) { write links.txt $3 -> $2 --- $5- | halt }
raw 365:*:unset %writetof

#127476 14/08/05 01:41 AM
W
WarlockW
WarlockW
W
Thanks Guys ! works

#127477 14/08/05 01:43 AM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
Note that, contrary to what it may look like based on the size of the code, the code I gave you is far more efficient, as it uses the file handling commands (fast, minimum disk access) versus /write (slow, maximum disk access).

#127478 14/08/05 02:53 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Quote:
Note that, contrary to what it may look like based on the size of the code, the code I gave you is far more efficient, as it uses the file handling commands (fast, minimum disk access) versus /write (slow, maximum disk access).


he is right its far more suitable also if you want to do something like write to file with the """"/LIST"""" command replace raw events with 322 and 323 , and also change links to list


Link Copied to Clipboard