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 

Auto updating progress bar

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



Joined: 29 Jan 2010
Posts: 41
Location: Decatur, AL

PostPosted: Mon Mar 15, 2010 4:14 pm    Post subject: Auto updating progress bar Reply with quote

Im trying to learn about progress bars now... but I can not seem to get it to work. What I would like to see is a progress bar that updates as the day goes on. Kinda like im "installing" 5 pm... Laughing
What I have so far is...
Code:
Loop
{
FormatTime, var1,YYYYMMDDHH24MISS, yyyyMMdd
var1 = %var1%1700
var2 =
EnvSub, var1, %var2%, m
SplashImage, Wow.bmp,,,Only %var1% min till 5!
Sleep, 3500
SplashImage, Off
Sleep, 300000
   }


Which loops all day and counts down how many minuets till 5... is there a way that I can get that var1 to be on a progress bar?
Back to top
View user's profile Send private message
wooly_sammoth



Joined: 12 May 2009
Posts: 634
Location: Gloucester UK

PostPosted: Mon Mar 15, 2010 4:55 pm    Post subject: Reply with quote

You know with Var1 how many minutes there are until 1700, so you can set up a progress bar with a range 0-var1 and have a timer set to increase the progress bar by 1 every minute

Code:

#Persistent

Prog = 0

SetTimer, CountDown, 60000
Progress, R0-%var1, Not Long Now, 1700 here we come
Return

CountDown:
Prog += 1
Progress, %Prog%
Return


Hope that points you in the right direction
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
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