AutoIt script not working

12/28/2011 12:42 razaz03#1
It uses send() commands which aren't picked up at all in-game.

How are the send() commands prevented and how can it be bypassed?

Thanks,
12/28/2011 18:07 Valdorian#2
Send should work. If you try Hotkeyset, that does not work on LoL. Try _ispressed instead.

Bad english ftw!

Gruß

Valdorian
12/28/2011 22:41 razaz03#3
Hi,

Thank you for your response. The following is code from a first-time scripter, perhaps you can please tell me why it's so erratic in-game (sometimes working, sometimes not, sometimes changing the order of the Send commands given:

Code:
#include <Misc.au3>

Func _Tf()
	
	If _IsPressed("31") = 1 Then 
		Sleep(500)
		Send("w")
		Sleep(400)
		Send("e")
		Sleep(400)
		Send("q")
		Sleep(400)
		Send("r")	
	EndIf
EndFunc

while 1
	_Tf()
	Sleep(10)
	WEnd
I put larger sleep values than desired for testing purposes - I just wanted to see if the sequence was functioning correctly.

Please look over this small bit of syntax, I would appreciate any advice you could give to help the stability of the script.

Thanks,