mIRC Homepage
Posted By: yamaz Re-send stuff - 26/10/05 10:45 AM
Hi, I thought about a command to resend the last file sent.
So far I managed to do this:

on 1:filesent:*.*:{ set %lastfile $filename }

then the alias:

resend /dcc send $active %lastfile

but this way I'm only able to resend with an open query window.

I'd like this stuff:

- when i type /resend i want it to ask me "resend the file <filename" with yes - no buttons
- if the focus is not on a query window mirc asks me for the nick to send to
- if there's no %lastfile set mirc says "no lastfile, you're an idiot :P "

thanks a lot wink
Posted By: Riamus2 Re: Re-send stuff - 26/10/05 02:39 PM
Well, you may want to also set the $nick of the last file sent so that it would resend to the same person automatically. It depends on what exactly you're doing. Of course, if you're using FILESENT, I'm unsure why you're trying to resend the file. If it was sent, then you shouldn't need to resend it. Perhaps you meant to use SENDFAIL?

Code:
alias resend {
  if (%lastfile == $null) { echo -a No lastfile.  You're an idiot :P | return }
  if ($?!="Resend the file %lastfile $+ ?" == $true) {
    if ($left($active,1) == #) {
      var %nick = $?="Send to what nick?"
    }
    else var %nick = $active
    if (%nick == $null) { echo -a You must specify a nick. | return }
    dcc send %nick %lastfile
  }
}


That should do the alias part of it for you.
Posted By: yamaz Re: Re-send stuff - 27/10/05 12:51 AM
no, it's meant to send the same file to different persons!

e.g. I send "dog.jpg" to Joe then Bruce asks for the same file and instead of using the usual way, I simply open a query with bruce and type /resend.

thanks a lot smile
Posted By: Riamus2 Re: Re-send stuff - 27/10/05 01:32 PM
I see. Well, the alias there should work for you.
© mIRC Discussion Forums