Thursday, September 16, 2004, 7:54:36 AM, you wrote:
--- In [EMAIL PROTECTED], "Mike Campbell" <[EMAIL PROTECTED]>
wrote:
> I've decided to try to configure an OSD for my system volume. I have
> the osd plugin and I can make that work so that when I press a key
it
> displays on screen. However, I'm stuck at how to configure 2 keys to
> increase/decrease the volume and also have an OSD.
>
> What I'd like is to do the following:
>
> make the keypad + and keypad - increase/decrease the volume. I can
use
> "*Exec VolumeAll +1" to do this and it will work.
>
> How do I also incorporate an OSD so that it shows the value as a
> percentage of the max volume as I press the + key? For example, the
> first press of the + key would show "50%" and as I continually press
> the + key the OSD would show 51% then 52%, etc...
You may use:
Exec.VolumeAll("+1")
Osd.Show(assign("vol",fill("00",volume*100/255))++"%"++"-"++repeat
("|",vol-1)++if(vol>0,"[]")++repeat("|",100-vol)++"-")
Sean
-----------------------------------------------------------------
Very nice. I changed my volume osd to use your script.
--
Ozkan
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/