S
S
Sergey Karbivnichy2015-03-03 21:25:02
Programming
Sergey Karbivnichy, 2015-03-03 21:25:02

How to write a simple script in AutoIT?

You need to press Enter in one game (Kozaki), then enter money and Enter again and do this 5 times. I am not familiar with this program, maybe someone will write a script if this is possible. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TomasHuk, 2015-03-04
@TomasHuk

Wrote a script. Launched by CNTR+F10.

HotKeySet('^{F10}', '_hk1')

While 1
   Sleep(100)
WEnd

Func _hk1()
   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

Starting up. Works as it should in other applications, but does not work in the Cossacks. Prescribes money only once.
Doesn't work without delay.
You can change this code to enter only once money.
Perhaps there is a solution, you just need to sit longer and dig deeper.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question