Jump to content
Sign in to follow this  

Simple Spam Script

Recommended Posts

Okay guys... So I've been messing around with AutoIt for the past few weeks, mostly involving gaming, and I've ran into a few snags. But this recent one that I ran into on this new script baffles me. I wrote this script to spam things in trade chat for World of Warcraft. It's supposed to start, open WoW, then start spamming the desired text in trade chat. I've been testing it in Notepad (which is why it sets focus to Notepad on startup), and instead of typing what I have in the input box, it types the numbers 3 and 4. It looks something like this.






etc, etc, etc...

The script looks something like this. Any help would be great. And yes, I realize that every wanna-be game hacker comes here with their problems, so I apologize for perpetuating that. But honestly, I'm writing this not because I'm a wanna-be hacker, per-se. It's just that I'm sorta learning the ropes of autoit. I need something to learn with, and I like gaming, so that is my subject. Thanks for putting up with that rant. The code is below.

#include <ButtonConstants.au3>

#include <EditConstants.au3>

#include <GUIConstantsEx.au3>

#include <StaticConstants.au3>

#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=

$Form1 = GUICreate("Form1", 528, 211)

$Input1 = GUICtrlCreateInput("Type your FIRST message here.", 8, 56, 505, 21)

$Input2 = GUICtrlCreateInput("Type your SECOND message here.", 8, 86, 505, 21)

$Input3 = GUICtrlCreateInput("NUMBER", 8, 120, 81, 21)

$Button1 = GUICtrlCreateButton("SPAM", 416, 160, 89, 33, $WS_GROUP)

$Label1 = GUICtrlCreateLabel("WoW SPAM in Trade Chat By: BraedonG", 8, 16, 288, 17)

$Label2 = GUICtrlCreateLabel("Press ESC at any time to terminate the program.", 8, 168, 228, 17)


#EndRegion ### END Koda GUI section ###

While 1

$nMsg = GUIGetMsg()

Switch $nMsg



Case $Button1





HotKeySet("{ESC}", "Close")

Func Close()


EndFunc ;==>Close

AutoItSetOption("SendKeyDelay", 200)

Func Spam()


Sleep(Random(4000, 6000))


Send($Input1, 1)


Sleep(Random(4000, 6000))


Send($Input2, 1)


$Input3 = $Input3 - 1

Until $Input3 = 0

EndFunc ;==>Spam

Func Setup()

WinActivate("Untitled - Notepad")

Sleep(Random(2000, 4000))


Sleep(Random(500, 800))

Send("/2 ")

Sleep(Random(500, 800))


EndFunc ;==>Setup

Share this post

Link to post
Share on other sites

Save youself alot of time for writing, read Announcement Game Bots and use search if you want to see how other similar topics about spaming or gamebots, especially about spamming ended up.

My suggestion is for you to edit your first post, remove your whall script, and to forget about all of this.

Ofc thats only suggestion

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)

There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.


Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...