LOL autoit combo bot script

12/18/2013 05:53 king-kongs#1
hello , i need some help with making a combo bot, i need a hotkey to start the combo and and a hotkey to pause it , anyone can help me with this, ty.

here is the script:

While 1

send ("qqqq")


sleep(200)

send ("wwww")

sleep (200)
send ("eee")



WEnd
12/18/2013 06:38 lolkop#2
Quote:
Originally Posted by king-kongs View Post
hello , i need some help with making a combo bot, i need a hotkey to start the combo and and a hotkey to pause it , anyone can help me with this, ty.

here is the script:

While 1

send ("qqqq")


sleep(200)

send ("wwww")

sleep (200)
send ("eee")



WEnd
Code:
HotKeySet('{F1}', 'Pause')
Global $run
While True
	If $run	Then
		send ("qqqq")
		sleep(200)
		send ("wwww")
		sleep (200)
		send ("eee")
	EndIf
WEnd
Func Pause()
	$run = Not $run
EndFunc
12/18/2013 08:16 king-kongs#3
how i can put a start func in it?
i copied your script but now it doesnt work , no q,w,e, pressed now.
12/18/2013 08:41 lolkop#4
Quote:
Originally Posted by king-kongs View Post
how i can put a start func in it?
i copied your script but now it doesnt work , no q,w,e, pressed now.
f1 is used to run/pause the script...

you can simply set the key in the hotkeyset on top of the script
12/18/2013 09:42 king-kongs#5
i put like this in script but then it doesnt start, like the old version at top it did press q,w,e, but i need a button for run/stop, but with your script it didnt work, maybe i need change something?

HotKeySet('{F1}', 'Pause')
Global $run
While True
If $run Then
send ("qqqq")
sleep(200)
send ("wwww")
sleep (200)
send ("eee")
EndIf
WEnd
Func Pause()
$run = Not $run
EndFunc
12/18/2013 11:09 qkuh#6
What about a sleep method call after the 'End If' ?
12/18/2013 11:28 mlukac89#7
try this
when you start script its paused
when you press F1 it start when you press F1 again it pause
F3 turn off script

and if you have problem with "Send" function use "ControlSend"

Code:
HotKeySet('{F1}', '_start')
HotKeySet('{F3}', '_quit')

Global $run

While 1
	Sleep(100)
WEnd

; start / pause script
Func _start()

	$run = Not $run

While True
	If $run Then
		send ("qqqq")
		sleep(200)
		send ("wwww")
		sleep (200)
		send ("eee")
	EndIf
WEnd

EndFunc

; exits script
Func _quit()
	Exit
EndFunc
12/18/2013 19:57 king-kongs#8
it doesnt work , i tried also with controlsend but when i press F1 it doesnt do anything, maybe i need put something in the script with League of Legends.exe?
12/18/2013 20:09 mlukac89#9
Try to put

Code:
Send("{w}", 1) ; or change 1 to 0 test it
Sleep(200)
Send("{w}", 1)
Sleep(200)
Send("{w}", 1)
Sleep(200)
Send("{w}", 1)
Sleep(200)
if that not work try to add

Code:
$winTitle = WinGetHandle("LOL - blabla") ; name of game window

ControlSend($winTitle, "", "", "{w}", 0)
open notepad and try to run script you will see that it send keys, but maybe is LOL blocking send or controlsend
12/18/2013 21:49 BitOfHope#10
Add in #RequireAdmin to the script mlukac89 posted. It would be:

Code:
#RequireAdmin
HotKeySet('{F1}', '_start')
HotKeySet('{F3}', '_quit')

Global $run

While 1
	Sleep(100)
WEnd

; start / pause script
Func _start()

	$run = Not $run

While True
	If $run Then
		send ("qqqq")
		sleep(200)
		send ("wwww")
		sleep (200)
		send ("eee")
	EndIf
WEnd

EndFunc

; exits script
Func _quit()
	Exit
EndFunc
12/18/2013 21:50 king-kongs#11
tried this too but dont work .

this script only works but i dont know how i can put a start and pause button.
While 1

send ("qqqq")


sleep(200)

send ("wwww")

sleep (200)
send ("eee")



WEnd

Quote:
Originally Posted by BitOfHope View Post
Add in #RequireAdmin to the script mlukac89 posted. It would be:

Code:
#RequireAdmin
HotKeySet('{F1}', '_start')
HotKeySet('{F3}', '_quit')

Global $run

While 1
	Sleep(100)
WEnd

; start / pause script
Func _start()

	$run = Not $run

While True
	If $run Then
		send ("qqqq")
		sleep(200)
		send ("wwww")
		sleep (200)
		send ("eee")
	EndIf
WEnd

EndFunc

; exits script
Func _quit()
	Exit
EndFunc
sec i try your script.
edit, doesnt work TT.
12/18/2013 22:01 mlukac89#12
HotKeySet('{F1}', '_start')

this is start/pause button
when you run script its paused you must press F1 to start and F2 to pause
F1 start <> pause
i dont know how it dont works, but for what is it that script to fire skills or to move ?

try this too i find it in help file

Single keys can also be repeated, e.g.
Send("{DEL 4}") ;Presses the DEL key 4 times
Send("{S 30}") ;Sends 30 'S' characters

so in your case Send("{W 5}") ; sending W 5 times

here you go try copy paste, compile x64, and right click -> run as admin
i tried now in notepad it sends keys no problem ;)

Code:
#RequireAdmin
HotKeySet('{F1}', '_start')
HotKeySet('{F3}', '_quit')

Global $run

While 1
	Sleep(100)
WEnd

; start / pause script
Func _start()

	$run = Not $run

While True
	If $run Then
		Send("{q 4}")
		Sleep(200)
		Send("{w 4}")
		Sleep(200)
		Send("{e 3}")
		Sleep(200)
	EndIf
WEnd

EndFunc

; exits script
Func _quit()
	Exit
EndFunc
12/18/2013 22:09 king-kongs#13
it is just a single keys hit combo in the game but it can be for every champion player different combo, but i dont know why it doesnt work with the function buttons script.
like you use w first for stun enemy, then use q for damage , e for damage, and r for ulti damage.

#RequireAdmin
HotKeySet('{F1}', '_start')
HotKeySet('{F3}', '_quit')



While 1

send ("qqqq")


sleep(200)

send ("wwww")

sleep (200)
send ("eee")



WEnd


sec i try this script.

this script works but the f1 /f3 functions no work, it does continuosly w,e,q.
your script above works on note but not on the game.
12/18/2013 22:51 mlukac89#14
So if that dont works you need to use ControlSend because it send keys to specified window.

But i think problem is that u dont use {} in send ("qqqq")

and you have a while only outside of function so script run all time that is problem and hotkey search for function to use it

Told you open new script -> make it empty and copy all that code i wrote you then save and try. Start game run script and press F1
12/18/2013 23:07 alpines#15
No, using "{eeee}" would be wrong because there is no keyboard that has an eeee-key.
{e}{e}{e}{e} would be right, or just "eeee" but if you use the last one then it's send as plain text instead of pushing the keys.