Skip to content

Instantly share code, notes, and snippets.

@DelusionalLogic
Created February 15, 2013 21:42
Show Gist options
  • Save DelusionalLogic/4963767 to your computer and use it in GitHub Desktop.
Save DelusionalLogic/4963767 to your computer and use it in GitHub Desktop.
League of legends "Spammer" At default size
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