mIRC Home    About    Download    Register    News    Help

Print Thread
dcc send #90655 16/07/04 04:00 AM
Joined: Jul 2004
Posts: 2
T
TheUnseen Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: Jul 2004
Posts: 2
I've written a little script, but I don't know why it doesn't work. I think it should... Help would be appreciated. Thanks

Code:
 On *:TEXT:@EasyUO:*:{
  if ( $me == [Bot]EasyUO ) { 
    msg $nick Make sure you can accept .rar file. Sending in 45 sec!
    timereasyuo 1 45 dcc send $nick C:\mIRC\EasyUO.rar
  }
} 


And I get: [14/07] DCC Send of EasyUO.rar to TheUnseen: Unable to open file

And yes EasyUO.rar isin C:\mIRC\

Re: dcc send #90656 16/07/04 07:41 AM
Joined: Feb 2004
Posts: 54
Cyclone Offline
Babel fish
Offline
Babel fish
Joined: Feb 2004
Posts: 54
On *:TEXT:$+(@,$me,*):*:{
if (EasyUO isin $me) {
notice $nick Make sure you can accept .rar file. Sending in 45 sec!
.timereasyuo 1 45 .dcc send $nick EasyUO.rar
}
}

The only thing I can think might be stopping this from working is the [ ] in your nick. I haven't tested so I don;t know if I am 100% correct. Try the above examle to see if it works then you'll know.
If the file is under the same dir as mirc.exe then you don't need to specify the full path, just name the file or the folder\file:
.dcc send $nick download\EasyUO.rar

hope this helps laugh

Re: dcc send #90657 16/07/04 10:04 AM
Joined: Apr 2003
Posts: 414
Adrenalin Offline
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
TheUnseen: Maybe that file is already opened ? Or some kind file-protection ? It should work..
If you ever will send a file what contain in the filepath some spaces you must use quotes(see Long File Names With Spaces In Them in help file).. dcc send $nick "c:\Some dir with spaces\and a file to send.mp3"

Cyclone: On *:TEXT:$+(@,$me,*):*:{

That will no work like you would, you must use $() to evaluate it..
->
On *:TEXT:$($+(@,$me,*)):*:{


Depressing weather in my country.. Run some java app.. to attract the Sun to me wink


mIRC Chm Help 6.16.0.3 Full Anchored!
Re: dcc send #90658 16/07/04 12:56 PM
Joined: Feb 2004
Posts: 54
Cyclone Offline
Babel fish
Offline
Babel fish
Joined: Feb 2004
Posts: 54
yep... quite right... that's why I stressed I hadn't tested it and wasn't sure if it was 100% correct.

however,

on *:TEXT:$(! $+ $me $+ *):*: {
<some commands>
}

this works laugh


Re: dcc send #90659 16/07/04 11:21 PM
Joined: Jul 2004
Posts: 2
T
TheUnseen Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: Jul 2004
Posts: 2
Hum, for a reason I wasn't able to send a .rar file. I just did:

Code:
 On *:TEXT:@EasyUO:*:{
  if ( $me == [Bot]EasyUO ) &amp;&amp; ( %EasyUO == $null ) { 
    msg $nick Make sure you can accept .exe files. Sending in 45 sec!
    set -u45 %EasyUO Sending
    timereasyuo 1 45 dcc send $nick "C:\mIRC\EasyUO\EasyUO.exe"
  }
  elseif ( $me == [Bot]EasyUO ) &amp;&amp; ( %EasyUO != $null ) {
    msg $nick Try again in 45 seconds.
  }
}