mIRC Homepage
Posted By: alkahol1k using $get - 09/03/05 10:14 PM
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
Posted By: alkahol1k Re: using $get - 09/03/05 10:22 PM
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?
Posted By: SladeKraven Re: using $get - 09/03/05 10:24 PM
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
}
Posted By: tidy_trax Re: using $get - 09/03/05 10:31 PM
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
}
Posted By: SladeKraven Re: using $get - 09/03/05 10:37 PM
I just assumed they'd want it to list the names as I did it. And seperated by a space. Good point though. smile
Posted By: alkahol1k Re: using $get - 09/03/05 10:42 PM
thanks for the help i'll try it
Posted By: SladeKraven Re: using $get - 09/03/05 10:52 PM
You're welcome dude.
Posted By: phishes Re: using $get - 10/03/05 12:03 PM
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
© mIRC Discussion Forums