| View previous topic :: View next topic |
| Author |
Message |
brotherS
Joined: 01 Jun 2005 Posts: 147
|
Posted: Fri Dec 14, 2007 12:11 am Post subject: simple timer/counter script? |
|
|
Hi,
I'm searching for a simple script that I could use so that I don't have to come up with one from scratch. What it should do - in lay terms - is this:
perform action 1 for x seconds
then, perform action 2 for x seconds
repeat 10 times
I used the search but couldn't find something like that (yeah, I know, it's probably bloody simple to code, but I never needed something like that). _________________ DonationCoder.com brings AHK to the newbies!
Fan of AutoHotkey? Consider an occasional donation to its developer, Chris Mallett. |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Dec 14, 2007 1:32 pm Post subject: Re: simple timer/counter script? |
|
|
| brotherS wrote: | | I know, it's probably bloody simple to code |
You are right.It is so simple that I can't imagine wich kind of help you need. |
|
| Back to top |
|
 |
Ace_NoOne
Joined: 10 Oct 2005 Posts: 333 Location: Germany
|
Posted: Fri Dec 14, 2007 2:46 pm Post subject: |
|
|
Here's a suggestion: | Code: | Loop, 10 {
foo()
Sleep, %delay1%
bar()
Sleep, %delay2%
} |
Now, that doesn't actually perform the respective action for x seconds - for that you'd probably use SetTimer with some kinda boolean variable to initiate the transition. _________________ Improving my world, one script at a time.
Join the AutoHotkey IRC channel: irc.freenode.net #autohotkey |
|
| Back to top |
|
 |
brotherS
Joined: 01 Jun 2005 Posts: 147
|
Posted: Fri Dec 14, 2007 6:03 pm Post subject: |
|
|
| Ace_NoOne wrote: | Here's a suggestion: | Code: | Loop, 10 {
foo()
Sleep, %delay1%
bar()
Sleep, %delay2%
} |
Now, that doesn't actually perform the respective action for x seconds - for that you'd probably use SetTimer with some kinda boolean variable to initiate the transition. |
Right, totally forgot about that... thanks a lot! _________________ DonationCoder.com brings AHK to the newbies!
Fan of AutoHotkey? Consider an occasional donation to its developer, Chris Mallett. |
|
| Back to top |
|
 |
|