Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

The return of the colorfull volume osd


  • Please log in to reply
11 replies to this topic
Gre
  • Guests
  • Last active:
  • Joined: --
I guess it may interest new users.
The new AHK version is using the XP look to draw GUI elements( looks much better ),
but those nice colorfull bars showed by
scripts are now default system scheme bars.
I wanted a volume osd showing colored bars again.
case somebody is interested this is a much(much or very??) simplified version of Rajat's
Volume On-Screen-Display (OSD)
This script was made specifically for TPF Display font, to use others fonts you must edit it.
volume_up::
SoundSet, +1, MASTER
Gosub, osd
Return
+volume_up::
SoundSet, +1, WAVE
Gosub, osd
Return
volume_down::
SoundSet, -1, MASTER
Gosub, osd
Return
+volume_down::
SoundSet, -1, WAVE
Gosub, osd
Return

osd:
SoundGet, ?volM, MASTER
SoundGet, ?volW, WAVE
Transform, ?volM, Ceil, %?volM%
Transform, ?volW, Ceil, %?volW%
?full = IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
IfWinNotExist, volumeMASTER
{
	StringLeft, ?barM, ?full, %?volM%
	StringLeft, ?barW, ?full, %?volW%
	Progress,1: B H26 W790 ZH0 C0 ZX0 ZY0 FS22 CTE0932F CWblack, , , volumeMASTER,TPF Display
	WinGetPos, , ?wY, , , volumeMASTER
	?wY += 26
	Progress,2: B Y%?wY% H26 W790 ZH0 C0 ZX0 ZY0 FS22 CTred CWblack, , , volumeWAVE,TPF Display
	Progress, 1:, %?volM%--%?barM%
	Progress, 2:, %?volW%--%?barW%
}
Else
{
	StringLeft, ?barM, ?full, %?volM%
	StringLeft, ?barW, ?full, %?volW%
	Progress, 1:, %?volM%--%?barM%
	Progress, 2:, %?volW%--%?barW%
}

SetTimer, label, 2000 ;bars are visible for 2 seconds
Return
label:
SetTimer, label, Off
Progress, 1:Off
Progress, 2:Off
Return
You can find TPF Display font here
http://www.dafont.co...lle=TPF Display

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004

but those nice colorfull bars showed by scripts are now default system scheme bars.

Thanks for mentioning it. I've found a way to fix this and in the next version, the bars will obey colors as they originally did.

If you find any other controls no longer work the way they originally did under a Windows XP theme, please let me know. One other example I've found is checkbox/radio text, which no longer obeys the specified font color.

deguix
  • Members
  • 87 posts
  • Last active: Jun 17 2014 05:18 AM
  • Joined: 26 Aug 2004
Maybe you should create an option to choose between having the Windows theme or not.

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
Thanks. For the next release, there will be a "Gui -Theme" command that causes all subsequently created controls in that window to use the classic theme. This effect can later be turned off via "Gui +Theme".

Perhaps there is a way to choose a specific/named theme as well, but if difficult to implement, that is probably a little to advanced to be a high priority.

Gre
  • Guests
  • Last active:
  • Joined: --

I've found a way to fix this and in the next version, the bars will obey colors as they originally did.

Will be great, but for volume osd the script I posted looks much better than bars.
Give it a try with the tpf display font, it may surprise you.

  • Guests
  • Last active:
  • Joined: --
It's really a pretty OSD THX.
What about a vertical one

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
I'll add "vertical progress bars" to the list. Thanks.

  • Guests
  • Last active:
  • Joined: --
yesss,vertical bass and treble
editing a font right now, dificult job when finished it'll look better then tfp display
In fact I'm editing tfp display :D

Gre
  • Members
  • 74 posts
  • Last active: Nov 22 2004 06:23 AM
  • Joined: 12 Oct 2004
I tried one script with vertical bars but I did not find an adequate font.
Guess the only way is to make|edit a font, maybe with something like a horizontal version
of TPF Display "I".
Hey "guest", will you share your font with us??

Gre
  • Members
  • 74 posts
  • Last active: Nov 22 2004 06:23 AM
  • Joined: 12 Oct 2004
volume osd using TPF display:
Posted Image

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
Thanks for the illustration. It is a nice look.

Rommels
  • Members
  • 14 posts
  • Last active: Dec 19 2010 03:49 AM
  • Joined: 25 Mar 2006
I can't figure out for the life of me how to make if so the background can be transparent...
Anybody?