 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Laraptor
Joined: 29 Jan 2010 Posts: 41 Location: Decatur, AL
|
Posted: Mon Mar 15, 2010 4:14 pm Post subject: Auto updating progress bar |
|
|
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...
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 |
|
 |
wooly_sammoth
Joined: 12 May 2009 Posts: 634 Location: Gloucester UK
|
Posted: Mon Mar 15, 2010 4:55 pm Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|