Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Loop replayed for 5mins?



  • Please log in to reply
2 replies to this topic
themo
  • New members
  • 4 posts
  • Last active: Oct 04 2015 06:44 PM
  • Joined: 02 Oct 2015
Hello
I have a question. How do I stop a particular loop is replayed for 5 minutes?  Thank you for any help
#a::

start:
Send {F3}
sleep, 1432
Send {F2}
sleep, 899
Send {F4}
sleep, 1004
goto, start

 



boiler
  • Members
  • 252 posts
  • Last active: Nov 07 2015 09:39 PM
  • Joined: 04 Jun 2014
✓  Best Answer
#a::

Start := A_TickCount
Loop
{
	Send {F3}
	sleep, 1432
	Send {F2}
	sleep, 899
	Send {F4}
	sleep, 1004
} until A_TickCount - Start > 300000
return


themo
  • New members
  • 4 posts
  • Last active: Oct 04 2015 06:44 PM
  • Joined: 02 Oct 2015
#a::

Start := A_TickCount
Loop
{
	Send {F3}
	sleep, 1432
	Send {F2}
	sleep, 899
	Send {F4}
	sleep, 1004
} until A_TickCount - Start > 300000
return

Works great. Thank you very much.