mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2003
Posts: 42
Demarko Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Sep 2003
Posts: 42
Hi all.
I hope somebody can help me with my little problem.



Is it possible to play a custom .wav sound when a dcc send/get is finished ???


So far I only found this option:
"mIRC Options -> DCC -> Options -> On completion -> Notify with beep -> [x] Send [x]Get [ ] Chat"
But this only makes my speaker beep(3 times).

I also checked the Sounds options,
"mIRC Options -> Sounds -> On Event, play sound"
but the dropdown menu only lists a "Dcc send" and a "Dcc fail" option, NO such thing as "Dcc complete" there frown


So is there a way to play a custom sound file (eg, *.wav) when a Dcc send or get is completed?



Thanks in advance.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on *:filesent:*: {
  .splay sent.wav
}

on *:filercvd:*: {
  .splay received.wav
}


Remember that if your filename or the path to the filename has spaces, you need to put quotes around it...

.splay "c:\program files\sounds\received.wav"


The other two events you might want are GETFAIL and SENDFAIL. They are formatted the same way. Just change the event name.

Also, you can have different sounds for different filetypes...

Code:
on *:filercvd:*.zip: {
  .splay GotZip.wav
}
on *:filercvd:*.jpg: {
  .splay GotJpg.wav
}


or..

Code:
on *:filercvd:*: {
  if ($right($filename,3) == zip) {
    .splay GotZip.wav
  }
  elseif ($right($filename,3) == jpg) {
    .splay GotJpg.wav
  }
}


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2003
Posts: 42
Demarko Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Sep 2003
Posts: 42
I'll try that. Thanks. smile

Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
There is such a thing, it's called "DCC Success"



billythekid

Link Copied to Clipboard