Top

Simple Volume Control


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Nov 06, 2009
Last Updated  Nov 06, 2009
Tags  mirc  music  sound  volume  windows 

Introduction

Mostly a product of boredom, but I thought I'd make a Volume Control dialog for practice. To use, load into a new Remotes file and right-click in a channel, then select 'Volume Control'. Drag the bar to the right to increase the volume, and to the left to decrease it.

Couldn't figure out how to incorporate a Mute/Unmute function, so if anyone wants to lend me some assistance, I'll incorporate it. :)

Grab the Code

;Simple Volume Control 
;by Zericho
;irc.rizon.net #Oni
 
menu channel {
  Volume Control:dialog -dm vol vol
}
dialog Vol {
  title "Volume Control"
  size -1 -1 205 18
  option dbu
  scroll "", 12, 5 -10 195 23, horizontal range 0 65535
}
 
on *:dialog:vol:init:0: {
  did -c $dname 12 $vol(master)
}
 
on *:dialog:vol:scroll:12: { 
  vol -v $did($did).sel 
}
 

Comments

  (6)  RSS
Scakk
Comments: 297
 
mIRC Snippet:  Simple Volume Control
Posted on Nov 6, 2009 9:23 pm
According to the Help Files

Code:

The -uN switch sets the mute setting, where N = 1 is on, N = 2 is off.
eL^Topo
Comments: 4
 
mIRC Snippet:  Simple Volume Control
Posted on Nov 7, 2009 7:46 pm
Nice... Thanks
Is there any way to make it vertical with max vol upwards?
sunslayer
Comments: 266
 
mIRC Snippet:  Simple Volume Control
Posted on Nov 7, 2009 9:14 pm
replace the dialog with this
Code:
dialog Vol {
  title "Volume Control"
  size -1 -1 54 205
  option dbu
  scroll "", 12, 21 4 9 195, range 0 65535
}
eL^Topo
Comments: 4
 
mIRC Snippet:  Simple Volume Control
Posted on Nov 8, 2009 3:40 am
Thank you too sunslayer, but max volume isn't upwards :)
sunslayer
Comments: 266
 
mIRC Snippet:  Simple Volume Control
Posted on Nov 8, 2009 9:05 am
i tried but i don't think its possible to get max at top :/
Scakk
Comments: 297
 
mIRC Snippet:  Simple Volume Control
Posted on Nov 8, 2009 2:02 pm
Code:

dialog Vol {
  title "Volume Control"
  size -1 -1 100 210
  option dbu
  scroll "", 12, 5 10 23 195, vertical range 0 65535
}


Vertical. Can not max the max at the top.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom