| View previous topic :: View next topic |
| Author |
Message |
jonwally
Joined: 25 Jul 2004 Posts: 2
|
Posted: Sun Jul 25, 2004 12:26 am Post subject: OSD Help |
|
|
Hello
Below is the code for and OSD that shows the current volume level when it is changed. The problem is that when changing the volume the OSD flashes, does anybody know how to stop this.
Thanks
| Code: |
SoundGet, pastvol
loop
{
SoundGet, currvol
if currvol <> %pastvol%
{
SplashImage, , B X237 Y630 H85 W550 CT00FF00 CW000000 FM24, , Volume`n[%currvol%], , Courier New
SoundGet, pastvol
}
}
|
|
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10463
|
Posted: Sun Jul 25, 2004 2:27 am Post subject: |
|
|
If all you want to do is update the window's text, using ControlSetText should prevent the flashing effect. However, I do recommend you put at least a Sleep 10 in that loop since otherwise it will probably use more CPU time than you would want.
There is also a volume OSD script posted here that uses hotkeys to change the volume: http://www.autohotkey.com/docs/scripts/VolumeOSD.htm |
|
| Back to top |
|
 |
jonwally
Joined: 25 Jul 2004 Posts: 2
|
Posted: Sun Jul 25, 2004 9:22 am Post subject: |
|
|
Hello
Thanks Chris. That is the exact thing I was looking for, the command that is.
Thanks Agian |
|
| Back to top |
|
 |
|