Macro 3 keys in a span of 5 seconds

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
WhaleChubby
Posts: 4
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: 80
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 (v1)”

Who is online

Users browsing this forum: ArkuS, dipahk, Nerafius, RandomBoy and 109 guests