mIRC Home    About    Download    Register    News    Help

Print Thread
#246635 23/06/14 12:24 AM
Joined: Dec 2011
Posts: 18
J
Pikka bird
OP Offline
Pikka bird
J
Joined: Dec 2011
Posts: 18
Is there an identifier that indicates rather /sound requests (/sound on | /sound off) are ON or OFF?

Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
$gettok($readini($mircini,options,n3),19,44)


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Nov 2009
Posts: 295
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
That wouldn't be correct if you change the options would it? Doesn't mirc only save the settings when you close?


http://scripting.pball.win
My personal site with some scripts I've released.
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
Indeed, I was tempted to include /saveini, unsure why I didn't:
Code:
//saveini | echo -a .. $gettok($readini($mircini,options,n3),19,44)


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2011
Posts: 18
J
Pikka bird
OP Offline
Pikka bird
J
Joined: Dec 2011
Posts: 18
Thanks! Works like a charm. I created a custom identifer:

alias sstate {
;Sound State = $sstate
saveini
return $gettok($readini($mircini,options,n3),19,44)
}


Link Copied to Clipboard