mIRC Home    About    Download    Register    News    Help

Print Thread
#90655 16/07/04 04:00 AM
T
TheUnseen
TheUnseen
T
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\

#90656 16/07/04 07:41 AM
C
Cyclone
Cyclone
C
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

#90657 16/07/04 10:04 AM
Joined: Apr 2003
Posts: 413
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 413
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

#90658 16/07/04 12:56 PM
C
Cyclone
Cyclone
C
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


#90659 16/07/04 11:21 PM
T
TheUnseen
TheUnseen
T
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.
  }
} 


Link Copied to Clipboard