Created
February 15, 2013 21:42
-
-
Save DelusionalLogic/4963767 to your computer and use it in GitHub Desktop.
League of legends "Spammer" At default size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function init() | |
print("Lol spam (I guess)") | |
window = getWindow("PVP.net Client") | |
waitTime = tonumber(Console:ReadLine("Time between messages")) | |
spamString = Console:ReadLine("String to send") | |
threadLock = false | |
lastRunTime = os.time() | |
end | |
function tick(time) | |
if(not window:isOpen() or threadLock or (os.time() <= lastRunTime + waitTime)) then | |
return | |
end | |
threadLock = true | |
screen = window:getScreenshot() | |
screen:Save("Wnidow.png") | |
screen:Dispose() | |
window:click(40, 775) | |
sleep(75) | |
window:click(65, 740) | |
sleep(50) | |
window:sendString(spamString) | |
sleep(50) | |
window:click(350, 740) | |
window:click(40, 775) | |
threadLock = false | |
lastRunTime = os.time() | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment