Jump to content

Not Working


Rashed

Recommended Posts

/splay will not work if sounds are disabled.. just do /ebeeps on and /splay will work...

 

Tip: You can put to play not only mp3, midi, wav, ogg, but also FLAC, ALAC and all audio formats.. to do this, first of all, you need to have respective decoders (the system wont play these files if you dont have respective decoders) like K-lite media tool or something else.. and to put in script just a simple syntax (an example)..

 

alias splay_allsounds {

rename C:\Sound.flac C:\Sound.mp3

splay C:\Sound.mp3

rename C:\Sound.mp3 C:\Sound.flac

}

 

works perfectly :D because mirc doesn't have an audio analyzer or smth else.. it streams audio to system and no matter what extension has the file..

Edited by Loveness
Link to comment
Share on other sites

but still small problem

the sound is played even im opening the whisper window and talking

it is played on every message the person send

 

on *:TEXT:*:?: refers to every message you obtain from the query user, so is no problem that on every incoming message the sound is played.

 

If you want to play the sound only when the query is opened, i. e. smb write you for the first time, instead of on *:TEXT:*:?: you must use on ^*:OPEN:?:

Link to comment
Share on other sites

use if () condition to indicate the script when to play and when no..

 

If i understand correctly you want to play the sound when mirc is minimized or is not active window? Ok, i suggest an example just:

 

 

on *:TEXT:*:?: {

if ($appactive == $false) || (($appactive == $true) && ($active != $nick)) .splay whisper.wav

}

 

Note: Do not see everytime splay reply: Playing file.. just put a dot before splay command :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...