mIRC Home    About    Download    Register    News    Help

Topic Options
#56081 - 19/10/03 12:47 PM Sound events identifier
yamaz Offline
Babel fish

Registered: 19/10/03
Posts: 68
Is there an identifier that returns if the event beeps (/ebeeps [on] [off]) are on? I did not find it in the help. Thank you very much.

Top
#56082 - 19/10/03 01:04 PM Re: Sound events identifier
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
Use $gettok($readini($mircini,options,n5),15,44) (1 = on, 0 = off. Reference here).

If you enable or diable sounds in the options dialog, changes in the INI file will take effect immediately and $readini will return the current state. However, if you use the command /ebeeps to enable or disable sounds, changes will take effect only after you opened the options dialog, restarted mirc or typed /saveini.

Top
#56083 - 19/10/03 02:59 PM Re: Sound events identifier
yamaz Offline
Babel fish

Registered: 19/10/03
Posts: 68
thanks a lot smile

Top
#56084 - 19/10/03 03:05 PM Re: Sound events identifier
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
Welcome laugh

Top
#56085 - 19/10/03 06:51 PM Re: Sound events identifier
yamaz Offline
Babel fish

Registered: 19/10/03
Posts: 68
there's still a little problem. with this script:

/snd {
%snd = $gettok($readini($mircini,options,n5),15,44)
if (%snd == 1) { .echo -a Sounds are now disabled | /ebeeps 0 | halt }
else { .echo -a Sounds are now enabled | /ebeeps 1 | halt }
}

i get a "* Event beeps are on" on the active window, and I dont want that. How can I avoid that? Thanks again

Top
#56086 - 19/10/03 06:52 PM Re: Sound events identifier
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
echo -a = active
echo -s = status window
.echo -q = quiet

also look at /help echo
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#56087 - 19/10/03 07:07 PM Re: Sound events identifier
yamaz Offline
Babel fish

Registered: 19/10/03
Posts: 68
no, i dont want to see the automatic mirc message. I wanna se the one i wrote! nothing to do with -echo command

Top
#56088 - 19/10/03 07:09 PM Re: Sound events identifier
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
/debug @debug .. then see what cosing that text you want to hide, then make a haltdef on it..
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#56089 - 19/10/03 07:16 PM Re: Sound events identifier
yamaz Offline
Babel fish

Registered: 19/10/03
Posts: 68
thanks but in this case it doesnt work......debug monitors only SERVER raws (as far as I know), and there's no server raw when changing sound options frown

Top
#56090 - 19/10/03 07:22 PM Re: Sound events identifier
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
it monitor all commands sended to and from mirc.. open the window, then send the command u want to look at, then see what the window says.. "i think it monitor everything, i havent seen anything it dont handle" smile
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#56091 - 19/10/03 07:47 PM Re: Sound events identifier
yamaz Offline
Babel fish

Registered: 19/10/03
Posts: 68
i was right wink if i execute my /snd command nothing happens in the debug window

Top
#56092 - 19/10/03 08:51 PM Re: Sound events identifier
Tsunami Offline
Babel fish

Registered: 17/10/03
Posts: 50
Loc: The Netherlands
sparta: it monitors all commands from and to the server, but not local commands like /snd
yamaz: don't put a . before echo if you want to see it (if that's not what you mean, then please explain, because I don't see any other problems...)
_________________________
Tsunami Productions

Top
#56093 - 19/10/03 09:34 PM Re: Sound events identifier
yamaz Offline
Babel fish

Registered: 19/10/03
Posts: 68
I'll explain it again:

/snd {
%snd = $gettok($readini($mircini,options,n5),15,44)
if (%snd == 1) { .echo -a Sounds disabled | /ebeeps off | /saveini }
else { .echo -a Sounds enabled | /ebeeps on | /saveini }
}

if i give the /snd command i get this in the active window:

[C] Sounds are now disabled
* Event beeps are off

the first row ([C] Sounds are now disabled) is the row that I want to see, the second row (* Event beeps are off) is the row i DON'T WANT to see, cause it's the default mirc message for disabling event beeps. How can I get rid of that crap? Thanks smile


Top
#56094 - 19/10/03 09:38 PM Re: Sound events identifier
Collective Offline
Planetary brain

Registered: 10/12/02
Posts: 3138
Loc: London, UK
/snd {
%snd = $gettok($readini($mircini,options,n5),15,44)
if (%snd == 1) { echo -a Sounds disabled | .ebeeps off | saveini }
else { echo -a Sounds enabled | .ebeeps on | saveini }
}

Top
#56095 - 19/10/03 09:46 PM Re: Sound events identifier
yamaz Offline
Babel fish

Registered: 19/10/03
Posts: 68
Oh my.........

I really don't beliive how stupid my question was......I'm sleeping frown Sorry guys

Top
#56096 - 20/10/03 03:58 AM Re: Sound events identifier
neophyte Offline
Fjord artisan

Registered: 12/04/03
Posts: 426
Loc: Australia
echo -q is really usefull for creating a command that you wish to have the option of being a quiet command.

For example, I have created my own custom say and msg commands, and I have used the -q switch to allow the msg command to be silent.

You do no need to use a . in the echo statement, because using the alias preceeded by a . will make it silent.

Eg:

/.msg #channel boo
_________________________
--------
mIRC - fun for all the family (except grandma and grandpa)

Top