volume sys
Platform: mIRC
Published Nov 10, 2010
Updated Nov 15, 2010
yea i was bored yet again no one will prolly use it but oh well. i made it cause i've been having a problem with my computer the volume icon on the menubar at the bottom won't stay on it so i made this to make things easier to control volume. if when you click on the sound main button you get an error you can try changing this line /run C:\Documents and Settings\All Users\Start Menu\Programs\Accessories\Entertainment\Volume Control to
run sndvol32.exe if that doesnt fix it umm contact me and i'll see if i can help ya haha ok its been edited it now displays what percent your volume is at eg 50% 45% and also displays if its muted when you hit mute. ok can now control not only main volume but also wave volume
Menu Menubar,Nicklist,Channel {
Volume Control System
.VenomVolumeSys: dialog $iif($dialog(volume.System),-v,-md volume.System) volume.System
}
Dialog Volume.system {
icon $mircdirspeaker.ico, 0
title ""
size -1 -1 220 105
box "Main Vol", 12, 02 0 67 69
button "up", 1, 02 16 67 25
button "down", 2, 02 43 67 25
box "Wave Vol", 13, 76 0 67 69
button "up", 6, 76 16 67 25
button "down", 7, 76 43 67 25
button "mute", 3, 150 16 67 25
button "unmute", 4, 150 43 67 25
button "sound main", 5, 02 74 216 25
}
on *:DIALOG:Volume.system:*:*:{
if ($devent == sclick) {
if ($did == 1) {
vol -v $calc( $vol(master) + 1000)
dialog -v Volume.system
dialog -t Volume.system Vol: $int($calc(( $vol(master) / 65535) * 100)) $+ %
}
if ($did == 2) {
vol -v $calc( $vol(master) - 1000)
dialog -v Volume.system
dialog -t Volume.system Vol: $int($calc(( $vol(master) / 65535) * 100)) $+ %
}
if ($did == 3) {
vol -vu1
dialog -t Volume.system Vol:muted
}
if ($did == 4) {
vol -vu2
dialog -t Volume.system Unmuted
.timer 1 2 dialog -t Volume.system Vol: $int($calc(( $vol(master) / 65535) * 100)) $+ %
}
if ($did == 6) {
vol -w $calc( $vol(wav) + 1000)
}
if ($did == 7) {
vol -w $calc( $vol(wav) - 1000)
}
if ($did == 5) {
/run sndvol32.exe
}
}
}