Multiple Settimers

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
N0X
Posts: 1
Joined: 06 Oct 2022, 16:29

Multiple Settimers

Post by N0X » 06 Oct 2022, 17:04

I want the code to be easily editable on time triggered with a clean output of:
I'm test 1
I'm test 2
I'm test 3
I'm test 1
I'm test 2
I'm test 3

BUT I get this

I'm test 1
I'm test 2
I'm test 3
I'm test 3
I'm test 3
I'm test 2
I'm test 3
I'm test 3
I'm test 3
I'm test 1
I'm test 2

Question:
Is there a better way to do this?
Should I use process instead?
example?

Code: Select all

^F2::
	SetTimer, test1, 1000, 1
	SetTimer, test2, 2000, 2
	SetTimer, test3, 4000, 3
	return
	
	test1:
		Send I'm test 1
		Send {enter}
		sleep 6000
	return
			
	test2:
		Send I'm test 2
		Send {enter}		
		sleep 3000		
	test3:
		Send I'm test 3
		Send {enter}		
		sleep 3000		
		
;return	i just manually kill the exe

User avatar
mikeyww
Posts: 26849
Joined: 09 Sep 2014, 18:38

Re: Multiple Settimers

Post by mikeyww » 06 Oct 2022, 20:53

Welcome to this AutoHotkey forum!

If you would like test2 to Return before proceeding to test3, then insert a :arrow: Return command.

Post Reply

Return to “Ask for Help (v1)”