help autoit codes

04/15/2013 07:29 chicho499#1
hello, that to know if anyone knows the codes for bots autoit s4 league ....

is that I want to create bots s4 league but I need the codes for AutoIt bots.

or What is the code for this command to start and stop with a letter with another letter or number.

While ("{LALT}")
HotKeySet ("{}")
Send ("{SPACE}")
Send ("{SPACE}")
Send ("{NUMPAD2}")
Send ("{SPACE}")
* WEnd

thanks
04/15/2013 08:41 Der-Eddy#2
Moved from S4 League to AutoIt Section
04/15/2013 18:00 butter123#3
i read your post twice and cant get a clue, what you want..
and your code ist just pure nonsense
04/15/2013 18:12 YatoDev#4
i also dont know what you mean but mayby it is this ? :
Code:
While 1
HotKeySet ("{LALT}")
Send ("{SPACE}")
Send ("{SPACE}")
Send ("{NUMPAD2}")
Send ("{SPACE}")
WEnd
04/15/2013 19:19 butter123#5
still nonsense, defining an hotkey in a while loop? and where is the function for the hotkey?
04/15/2013 19:26 YatoDev#6
Quote:
Originally Posted by butter123 View Post
still nonsense, defining an hotkey in a while loop? and where is the function for the hotkey?
sry hab ich nicht gesehen am handy :D

das wäre sinnvoll aber vielleicht will er die func auch nicht mit uns teilen haha :D

Code:
HotKeySet ("{LALT}","yourfunc")
While 1
Send ("{SPACE}")
Send ("{SPACE}")
Send ("{NUMPAD2}")
Send ("{SPACE}")
WEnd
04/16/2013 05:41 chicho499#7
I want to do is a function of

Send ("{SPACE}")
Send ("{NUMPAD2}")
Send ("{SPACE}")

but I want to know how to run it and pause it ...
04/16/2013 12:36 FacePalmMan#8
1. :facepalm: learn autoit (and use the F1 function):rtfm:
2. here your code:
Code:
Hotkeyset("{LAlt}","Start")
Hotkeyset("{YourHotKey}","Pause") ;Replace YourHotKey with whatever HotKey You want
While 1
Sleep(1)
Wend

Func Pause()
While 1
Sleep(1)
WEnd
EndFunc

Func Start()
While 1
Send ("{SPACE}")
Send ("{NUMPAD2}")
Send ("{SPACE}")
WEnd
EndFunc