Automating shortcuts to repeat?

Discussion, questions and support.
Post Reply
lennylevino
Posts: 1
Joined: Jun 12th, ’22, 20:49

Post by lennylevino » Jun 12th, ’22, 20:55

I just purchased FastKeys. I am trying to use a shortcut, lets say the space bar, and then have whatever text/command automatically repeat every X seconds (until I press the shortcut button again, which should deactivate the loop).

For example, I want to:

- Press "Space", FastKeys writes "My name is James" every 14 seconds in perpetuity. When I hit "Space" again, the automation loop will stop.

- Press "H", FastKeys writes "Today is a good day!" every 25 seconds. And so on.

How do I do this?
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Jun 13th, ’22, 15:44

Set a shortcut (Type: Command):

Code: Select all

Running:=!Running
If Running
	SetTimer, Start, -1
return

Start:
While (Running)
{
	Send, My name is James
	Sleep, 14000  ;14 seconds
}
Return
Post Reply