Luckly, swzoh's script works well for me.
Just FYI, I hve uninstalled the itouch software from Logitech. Seems
it causes problem to Keytrap.
On Sun, 12 Sep 2004 12:38:47 +0000 (UTC), sgp <[EMAIL PROTECTED]> wrote:
> cronus1974 wrote:
>
> > Or any one has any other decent way to make an OSD slider bar for
> > this purpose?
>
> A while ago C�ney posted his decent script. I just put a wrapper around it. I use it
> with the Keytrap
> plugin. Rarely I still get the "script nested too deeply" error, if you find a way
> to fix it do let me know.
> BTW, this script doesn't use OSD, just PP bars.
>
> --SGP
>
> Keytrap.ini --> Keytrap.powerpro --> scr_Volume_Control.powerpro
>
> ---Keytrap.ini assignments for my multimedia keyboard---
>
> ini=0,0,0,32,173,1,,,[EMAIL PROTECTED],1,1,,,,,,Mute
> ini=0,0,0,48,175,0,,,[EMAIL PROTECTED](%vkc%),1,1,,,,,,Volume +
> ini=0,0,0,46,174,0,,,[EMAIL PROTECTED](%vkc%),1,1,,,,,,Volume -
>
> ---My Keytrap.powerpro script---
>
> @volmute
> quit([EMAIL PROTECTED])
> ;quit([EMAIL PROTECTED]("Mute"))
>
> @volup
> static volup
> if( not event.exists(volup) )
> volup=event.createms("10",100,"[EMAIL PROTECTED] if(not KeyTrap.GetKeyState(0,arg
> (1)))\r event.destroythis")
> quit
>
> @voldown
> static voldown
> if(not event.exists(voldown))
> voldown=event.createms("10",100,"[EMAIL PROTECTED] if(not KeyTrap.GetKeyState
> (0,arg(1)))\r event.destroythis")
> quit
>
> ---scr_Volume_Control script---
>
> ;[**scr_Volume_Control]
>
> @CheckVolume
> Static old_volume
> If(old_volume != volume)Do
> old_volume = volume
> [EMAIL PROTECTED]
> EndIf
> Quit
>
> @ShowVolumeOSD
> Bar Show bar_Info_Volume
> Quit
>
> @RepaintVolumeOSD
> Local osd_total_items = 40
> Local m_volume = volume * 100 / 255
> Local rounded = m_volume * 8 / osd_total_items
> Local itemnum, current
> ;red
> Local color_muted = 3158271
> ;yellow
> Local color_normal = 49407
> ;green 0x11c250
> Local color_normal = 1163856
> ;Debug Volume: &(m_volume), rounded: &(rounded)
>
> ;paint the visible part, muted or not
> For(current=0; current < rounded; current = current + 1)
> Format Item item &(1 + current * 2) list "bar_Info_Volume" ownback 1
> colorback &(ifelse(muted,
> color_muted, color_normal))
> Endfor
>
> ;hide the upper region
> For(current=rounded; current < osd_total_items / 2; current = current + 1)
> Format Item item &(1 + current * 2) list "bar_Info_Volume" ownback 0
> Endfor
>
> ;paint muted status
> ;format item in order to repaint the volume title as well
> Format Item item &(osd_total_items + 2) text "Volume: &(m_volume) %" list
> "bar_Info_Volume"
> owntext 1 colortext &(ifelse(muted, color_muted, color_normal))
> ;SGP: autohide also in muted status
> ; ;don't autohide in muted status
> ; Bar Format bar_Info_Volume !` autohide &(ifelse(muted, 0, 1500))
>
> [EMAIL PROTECTED]
>
> Quit
>
> @VolumeDown
> Exec VolumeAll -4
> [EMAIL PROTECTED]
>
> Quit
>
> @VolumeUp
> Exec VolumeAll +4
> [EMAIL PROTECTED]
>
> Quit
>
> @VolumeMute
> Exec Mute
> [EMAIL PROTECTED]
>
> Quit
>
> ; SGP added, to be assigned in KeyTrap.ini with ONKEYUP=0
> @RepeatVolumeUp
> static Processing
> If(Processing)
> Quit
> Processing=1
> [EMAIL PROTECTED]
> Processing=0
> Quit
>
> ; SGP added, to be assigned in KeyTrap.ini with ONKEYUP=0
> @RepeatVolumeDown
> static Processing
> If(Processing)
> Quit
> Processing=1
> [EMAIL PROTECTED]
> Processing=0
> Quit
>
> --- The end ---
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/