mIRC Home    About    Download    Register    News    Help

Print Thread
#113889 09/03/05 10:14 PM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
I want to echo my dcc info in my script so from the helpfile i found this:

$get(N/nick,[N])
Returns the nickname and filename of the Nth open dcc get window.

I've tried a few commands and nothing returns

#113890 09/03/05 10:22 PM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
I found //echo $get(1).file seems to work fine but thats only if i have one dcc get. What If i had lets say, 5 dccs coming at the same time, how would i be able to echo that?

#113891 09/03/05 10:24 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Try something like this.
Syntax: /listget.
Code:
alias listget {
  var %x $Get(0), %get
  while (%x) {
    var %get = $addtok(%get,$get(%x),32)
    dec %x
  }
  echo -a DCC Gets: %get
}

#113892 09/03/05 10:31 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
It will be better not to use $addtok as that will only list one get from each person even if you have two gets with a single person.

Code:
alias listget {
  var %x = $Get(0), %get
  while (%x) {
    %get = %get $get(%x)
    dec %x
  }
  echo -a DCC Gets: %get
}


New username: hixxy
#113893 09/03/05 10:37 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I just assumed they'd want it to list the names as I did it. And seperated by a space. Good point though. smile

#113894 09/03/05 10:42 PM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
thanks for the help i'll try it

#113895 09/03/05 10:52 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome dude.

#113896 10/03/05 12:03 PM
Joined: Mar 2005
Posts: 15
Pikka bird
Offline
Pikka bird
Joined: Mar 2005
Posts: 15
I like that, another thing i could think of to add to that, is to make it show a more complex stats bit, showing a progress bar everytime you list gets and send with a percentage of how much has been done


Link Copied to Clipboard