AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OSD Help

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
jonwally



Joined: 25 Jul 2004
Posts: 2

PostPosted: Sun Jul 25, 2004 12:26 am    Post subject: OSD Help Reply with quote

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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Sun Jul 25, 2004 2:27 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jonwally



Joined: 25 Jul 2004
Posts: 2

PostPosted: Sun Jul 25, 2004 9:22 am    Post subject: Reply with quote

Hello

Thanks Chris. That is the exact thing I was looking for, the command that is.

Thanks Agian
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group