[AHK] How to create a simple RotMG Spam bot!
Hey you! You probably clicked on this thread to either learn some AHK scripting or just get a spam bot. I will not include any download for this so you better create it yourself
[THIS IS ONLY FOR EDUCATIONAL PURPOSES, ONLY USE IT FOR TRADING. DO NOT ADVERTISE YOUR DUMB ASS RWT WEBSITE]
This is only for people that understand some of the basics in programming, I am not gonna explain everything
Step 1. Downloading and Installing AHK
So you might be asking yourself "What the fuck is AHK?" Well I'm gonna tell you what it is. AHK stands for AutoHotKey and it is
"a free, open-source macro-creation and automation software utility that allows users to automate repetitive tasks in Windows"
But let's get going. The first thing you are gonna need to do is to download AHK from their website.
1. Search AutoHotKey on google
2. Enter the site and press the download button
3. You will probably get redirected to a website with some stuff, just press to download the installer
4. Install the software
Step 2. Planning
So you have installed AHK but you have no idea what to do with it except that were creating a spambot. What you should always do in any programming language before making something is planning , so what do we want this script to do? Well
It's going to type something over and over again in the chat aswell as keeping it immune to the antispam system. Simple right? Let's do it!
Step 3. Creating the script
So the first thing you are gonna do is to open your favourite text editor (Notepad++
)
[HTML]Loop{
}[/HTML]
So as every other programming language, AHK runs the script from the top to the bottom. So unless it is told to do something different, this is what we are going to use the Loop command to do. The script is gonna keep running until it's told to stop
[HTML]Loop
{
Send {enter}
sleep 500
Send ^v
sleep 2000
Send {enter}
}[/HTML]
So what were doing here is opening the chat, waiting for 0.5 second and pasting what ever you have copied, then it goes on to waiting and presses Enter again (which sends the message)
[HTML]
Loop
{
Send {enter}
sleep 500
Send ^v
sleep 2000
Send {enter}
sleep 500
Send {enter}
send ^v
sleep 500
Send .
sleep 2000
send {enter}
}
[/HTML]
Let's do the same thing twice in the script , but this time add a Send line that adds a . every 2 messages. This makes the script immune to the anti-spam you usually encounter when trading
[HTML]esc::ExitApp[/HTML]
At the end of the script, after the Loop were gonna add a function that makes the script exit if we press esc. Which makes it very easy to stop the script.
Step 4. Saving the script
Congrats! You have written your first AHK script, make sure you understand everything before moving on
We now want to save the script so we can actually use it
Save it as an .ahk file
When you have saved the file it should have an icon that looks like an "A"
Now you only need to double click the file and click inside your game window
You now got a fully working (But very simple) Spam bot for RotMG
Feel free to ask questions about the script and AHK
[THIS IS ONLY FOR EDUCATIONAL PURPOSES, ONLY USE IT FOR TRADING. DO NOT ADVERTISE YOUR DUMB ASS RWT WEBSITE]This is only for people that understand some of the basics in programming, I am not gonna explain everything
Step 1. Downloading and Installing AHK
So you might be asking yourself "What the fuck is AHK?" Well I'm gonna tell you what it is. AHK stands for AutoHotKey and it is
"a free, open-source macro-creation and automation software utility that allows users to automate repetitive tasks in Windows"
But let's get going. The first thing you are gonna need to do is to download AHK from their website.
1. Search AutoHotKey on google
2. Enter the site and press the download button
3. You will probably get redirected to a website with some stuff, just press to download the installer
4. Install the software
Step 2. Planning
So you have installed AHK but you have no idea what to do with it except that were creating a spambot. What you should always do in any programming language before making something is planning , so what do we want this script to do? Well
It's going to type something over and over again in the chat aswell as keeping it immune to the antispam system. Simple right? Let's do it!
Step 3. Creating the script
So the first thing you are gonna do is to open your favourite text editor (Notepad++
)[HTML]Loop{
}[/HTML]
So as every other programming language, AHK runs the script from the top to the bottom. So unless it is told to do something different, this is what we are going to use the Loop command to do. The script is gonna keep running until it's told to stop
[HTML]Loop
{
Send {enter}
sleep 500
Send ^v
sleep 2000
Send {enter}
}[/HTML]
So what were doing here is opening the chat, waiting for 0.5 second and pasting what ever you have copied, then it goes on to waiting and presses Enter again (which sends the message)
[HTML]
Loop
{
Send {enter}
sleep 500
Send ^v
sleep 2000
Send {enter}
sleep 500
Send {enter}
send ^v
sleep 500
Send .
sleep 2000
send {enter}
}
[/HTML]
Let's do the same thing twice in the script , but this time add a Send line that adds a . every 2 messages. This makes the script immune to the anti-spam you usually encounter when trading
[HTML]esc::ExitApp[/HTML]
At the end of the script, after the Loop were gonna add a function that makes the script exit if we press esc. Which makes it very easy to stop the script.
Step 4. Saving the script
Congrats! You have written your first AHK script, make sure you understand everything before moving on
We now want to save the script so we can actually use it
Save it as an .ahk file
When you have saved the file it should have an icon that looks like an "A"
Now you only need to double click the file and click inside your game window
You now got a fully working (But very simple) Spam bot for RotMG
Feel free to ask questions about the script and AHK

