mIRC Homepage
Posted By: TheUnseen dcc send - 16/07/04 04:00 AM
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\
Posted By: Cyclone Re: dcc send - 16/07/04 07:41 AM
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
Posted By: Adrenalin Re: dcc send - 16/07/04 10:04 AM
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
Posted By: Cyclone Re: dcc send - 16/07/04 12:56 PM
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

Posted By: TheUnseen Re: dcc send - 16/07/04 11:21 PM
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.
  }
} 
© mIRC Discussion Forums