Macro 3 keys in a span of 5 seconds

Get help with using AutoHotkey and its commands and hotkeys
WhaleChubby
Posts: 2
Joined: 13 Apr 2018, 00:59

Macro 3 keys in a span of 5 seconds

24 May 2018, 21:48

I'm very new to coding and I was wondering how to create a macro which presses the Enter key, types "dfghj" and Enter key again.

In a span of 5 seconds.

Every 5 seconds the macro will repeat itself.

Enter Key, (0.5 seconds later) types "dfghj" and (0.5 seconds later) presses the Enter Key, then the macro waits 5 seconds and repeats the macro in an infinite loop.

I don't assume this will be hard. :D
Spark
Posts: 55
Joined: 04 Jan 2017, 02:22

Re: Macro 3 keys in a span of 5 seconds

24 May 2018, 22:00

hello,
try :

Code: Select all

F1::
Loop, 
{
	Send, {Enter}
	Sleep, 500
	Send, dfghj
	Sleep, 500
	Send, {Enter}
	Sleep, 5000
}
return
esc::ExitApp

Return to “Ask For Help”

Who is online

Users browsing this forum: AlphaGamer150, Bing [Bot], bugzy, burque505, jsmain, swagfag, TheDewd and 65 guests