mikeyww wrote: ↑20 Oct 2021, 21:22
You referred to three hotkeys, but your script has only one, so your intent is not clear.
Yes, you can use
SetTimer.
Example
Your hotkey can start two timers-- two different SetTimer commands. Each timer will have its own subroutine.
Yes, this is my issue. My script has one hotkey... I want to figure out how to add a second key on a different timer, using the same macro. In the example I posted, the macro is pressing "3" every 20.5 seconds (roughly). I want the macro press "3" every 20,500 seconds, but also press "1" every 5 seconds. I'm not sure how to make it do that.
I read the "SetTimer" page you linked, but the examples there, for example:
Code: Select all
#Persistent
SetTimer, CloseMailWarnings, 250
return
CloseMailWarnings:
WinClose, Microsoft Outlook, A timeout occured while communicating
WinClose, Microsoft Outlook, A connection to the server could not be established
return
[Mod edit: [code][/code] tags added.]
This also seems to only be doing 1 thing.