Code:
InputBox, UserInput1, Anzahl, Enter a number., , 300, 100
InputBox, UserInput2, Key, Enter a key., , 300, 100
InputBox, UserInput3, delay, Enter a delay., , 300, 100
InputBox, UserInput4, WindowTitle, Enter the Window Name., , 300, 100
if ErrorLevel
MsgBox, CANCELED
else
Loop, %UserInput1%
{
ControlSend,, %UserInput2%, %UserInput4%
Sleep, %UserInput3%
}







