How to write a simple script in AutoIT?

Need in one game (Cossacks) press Enter then enter again and Enter money and to do so 5 times. This program is not familiar, maybe someone will write a script if possible. Thank you.
September 18th 19 at 23:48
2 answers
September 18th 19 at 23:50
Solution
view clickermann, writing a script is not necessary.
If my answer helped You, can mark it as the solution. ;)
In clickermann there is a record of action, once will do what is necessary and put on the play. - christiana_Casper commented on September 18th 19 at 23:53
September 18th 19 at 23:52
Wrote a script. Started by CNTR+F10.
HotKeySet('^{F10}', '_hk1')

While 1
Sleep(100)
WEnd

_hk1 Func()
 For $i = 1 to 5 Step 1
Send("{ENTER}")
Send("{m}")
Sleep(100)
Send("{o}")
Sleep(100)
Send("{n}")
Sleep(100)
Send("{e}")
Sleep(100)
Send("{y}")
Sleep(100)
Send("{ENTER}")
Next
EndFunc

Start. Works as it should in other applications, but the Cossacks did not work. Gives money only once.
No delay is not working.
You can change this code to enter only one time money.
Perhaps there is a solution, just need to sit longer and to dig deeper.

Find more questions by tags ProgrammingKeyboardAutoItSoftware