Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Realm of the Mad God Hacks & Cheats › [AHK] Quick teleport, trade spam, auto-select, auto-deposit/withdraw, customizable!

Thumbs up[AHK] Quick teleport, trade spam, auto-select, auto-deposit/withdraw, customizable!

Posts 1–15 of 46 · Page 1 of 4
dwdude
dwdude
[AHK] Quick teleport, trade spam, auto-select, auto-deposit/withdraw, customizable!
Hey there. Decided I'd release the autohotkey script I've been working on.

IMPORTANT:
If you are trying to use the auto-select, auto-deposit, and auto-withdraw, you must be using a Flash projector and it must be the default 800x600 size. If you are not, hotkeys F5 F6 and F7 will not move to the correct position on your screen.

Controls:
Code:
F1 = "Heal please!"
F2 = "He lives and reigns and conquers the world"
F3 = Trade message
F4 = Send Trade to yourself (from a mule)

F5 = Select all in trade (Selects all 8 items in your trade window, then presses accept after 3 seconds. Just wait)
F6 = Withdraw
F7 = Deposit
F8 = Low Quality (rather touchy, so you may have to press it a few times)

F9 = Change MyName
F10 = Change Trade Message
F11 = Change Teleport
F12 = Disable/Enable hotkeys

MiddleMouseButton = Quick teleport
` = /pause
plz = /tutorial
As you can see, it is similar to QuickSpeech, but more useful and easier to customize.

Here is the script itself. I have it commented pretty well so you can learn from it if you are learning AutoHotKey, but there are only a few default values that you should really worry about anyway.

Credits go to me, as well as BMJ for inspiring me to create something better.
Code:
; ======================================
; CHANGE THESE FOR SCRIPT STARTUP VALUES
; CHANGE THESE FOR SCRIPT STARTUP VALUES
; CHANGE THESE FOR SCRIPT STARTUP VALUES
; CHANGE THESE FOR SCRIPT STARTUP VALUES
; CHANGE THESE FOR SCRIPT STARTUP VALUES
; ======================================
Teleport = Kalle
MyName = BMJ
TradeMessage = Selling Amulet for 1 bbow!

; =========================
; DO NOT CHANGE ANYTHING BELOW THIS LINE
; DO NOT CHANGE ANYTHING BELOW THIS LINE
; DO NOT CHANGE ANYTHING BELOW THIS LINE
; DO NOT CHANGE ANYTHING BELOW THIS LINE
; =========================

TradeMessageToggle = 0
HotkeyStatus = Enabled

; Prompt to disable all hotkeys. Placement is important; we want to be able ti disable hotkeys from any window
F12::
	MsgBox, 4, Disable?, Would you like to disable all hotkeys? Yes = Disabled, No = Enable. Currently: %HotkeyStatus%
	IfMsgBox Yes
		HotkeyStatus = Disabled
	IfMsgBox No
		HotkeyStatus = Enabled
return


; Any hotkeys below this line will only work in a flash player window
; NOTE: If you are not using a flash projector, comment out the line below by putting a ; in front of it.
; NOTE: If you do comment it out, F5 F6 and F7 will not work.
#IfWinActive Adobe Flash Player 11

; Quick teleport. OHSHIT moments
MButton::
	if HotkeyStatus = Enabled
	{
		SendInput {raw}/teleport %Teleport%
		Send {Enter}
	}
return


; When you type plz, it changes it to /tutorial.
:*b:plz::/tutorial{Enter}


; Top left button on keyboard, toggles pause
`::
	if HotkeyStatus = Enabled
	{
		SendInput {raw}/pause
		Send {Enter}
	}
return


; =========================
;
;	FX KEY SCRIPTS
;
; =========================


; Heal please!
F1::
	if HotkeyStatus = Enabled
	{
		Send {Enter}
		SendInput {raw}Heal please!
		Send {Enter}
	}
return


; Ocean trench message
F2::
	if HotkeyStatus = Enabled
	{
		Send {Enter}
		SendInput {raw}He lives and reigns and conquers the world
		Send {Enter}
	}
return


; Send trade/spam message, changing the last part so it is always visible
F3::
	if HotkeyStatus = Enabled
	{
		if TradeMessageToggle = 0
		{
			Send {Enter}
			SendInput {raw}%TradeMessage%
			Send {Enter}
			TradeMessageToggle = 1
		}
		else if TradeMessageToggle = 1
		{
			Send {Enter}
			SendInput {raw}%TradeMessage%.
			Send {Enter}
			TradeMessageToggle = 2
		}
		else if TradeMessageToggle = 2
		{
			Send {Enter}
			SendInput {raw}%TradeMessage%..
			Send {Enter}
			TradeMessageToggle = 0
		}
	}
return


; Send trade to yourself (from a mule, for instance)
F4::
	if HotkeyStatus = Enabled
	{
		SendInput {raw}/trade %MyName%
		Send {Enter}
	}
return


; Select all items in trade, then accept
F5::
	if HotkeyStatus = Enabled
	{
		XValue := 630
		YValue := 350
		OffsetX := 45
		OffsetY := 100
		Iteration := 0
		NewRow := 0

		MouseMove, %XValue%, %Yvalue%, 0
		
		Loop, 8
		{
			LoopTrade(XValue, YValue, Iteration, OffsetX, OffsetY, NewRow)
		}
	}
return


; Withdraw all items from vault
F6::
	if HotkeyStatus = Enabled
	{
		XValue := 630
		YValue := 575
		OffsetX := 45
		OffsetY := 100
		Iteration := 0
		NewRow := 0

		MouseMove, %XValue%, %Yvalue%, 0

		Loop, 8
		{
			LoopWithdraw(XValue, YValue, Iteration, OffsetX, OffsetY, NewRow)
		}
	}
return


; Select all items in a trade and accept
F7::
	if HotkeyStatus = Enabled
	{
		XValue := 630
		YValue := 475
		OffsetX := 45
		OffsetY := 100
		Iteration := 0
		NewRow := 0

		MouseMove, %XValue%, %Yvalue%, 0

		Loop, 8
		{
			LoopDeposit(XValue, YValue, Iteration, OffsetX, OffsetY, NewRow)
		}
	}
return


; Low Quality
F8::
	if HotkeyStatus = Enabled
	{
		Send {Alt}
		SendInput {raw}VQL
	}
return


; Change your name, for use with F4
F9::
	if HotkeyStatus = Enabled
	{
		OldName = %MyName%
		InputBox, MyName, Change Name, What is your character's name? This is used for sending /trade when pressing F4. Current name: %OldName%
		if ErrorLevel
			MyName = %OldName%
	}
return


; Change trade/spam message
F10::
	if HotkeyStatus = Enabled
	{
		OldMessage = %TradeMessage%
		InputBox, TradeMessage, Change Message, What do you want your new message to be? Current message: %OldMessage%
		if ErrorLevel
			TradeMessage = %OldMessage%
	}
return


; Change quick teleport. Cancel = keeps previous
F11::
	if HotkeyStatus = Enabled
	{
		PrevTeleport = %Teleport%
		InputBox, Teleport, Change Teleport, Who do you want to have as a safe teleport? "%Teleport%" is current.
		if ErrorLevel
			Teleport = %PrevTeleport%
	}
return


; ================
;
;     FUNCTIONS
;	DO NOT MODIFY
;
; ================


LoopWithdraw(ByRef x, ByRef y, ByRef iter, ByRef offsetX, ByRef offsetY, ByRef newRow)
{
	Send {LButton down}
	y := y - offsetY
	Sleep 250

	MouseMove, %x%, %y%, 0
	Send {LButton up}
	Sleep 250
	
	iter := iter + 1
	if iter = 4
	{
		newRow := 1
	}
	if newRow = 1
	{
		y := y + 45
		x := x - 45 - 45 - 45 - 45
		newRow := 0
	}

	x := x + offsetX
	y := y + offsetY
	MouseMove, %x%, %y%, 0
}

LoopDeposit(ByRef x, ByRef y, ByRef iter, ByRef offsetX, ByRef offsetY, ByRef newRow)
{
	Send {LButton down}
	y := y + offsetY
	Sleep 250

	MouseMove, %x%, %y%, 0
	Send {LButton up}
	Sleep 250
	
	iter := iter + 1
	if iter = 4
	{
		newRow := 1
	}
	if newRow = 1
	{
		y := y + 45
		x := x - 45 - 45 - 45 - 45
		newRow := 0
	}

	x := x + offsetX
	y := y - offsetY
	MouseMove, %x%, %y%, 0
}

LoopTrade(ByRef x, ByRef y, ByRef iter, ByRef offsetX, ByRef offsetY, ByRef newRow)
{
	Send {LButton down}
	Send {LButton up}
	
	iter := iter + 1
	if iter = 4
	{
		newRow := 1
	}
	if newRow = 1
	{
		y := y + 45
		x := x - 45 - 45 - 45 - 45
		newRow := 0
	}
	if iter = 8
	{
		y := y + 225
		MouseMove, %x%, %y%, 0
		Sleep 3000
		Send {LButton down}
		Send {LButton up}
	}
	else
	{
		x := x + offsetX
		MouseMove, %x%, %y%, 0
	}
}
Let me know if you have any issues and I will help correct them!
#1 · edited 13y ago · 13y ago
runekri3
runekri3
Thats nice

It can be used to make duping easier aswell
Though the script I am using is a bit easier.

Good job
#2 · 13y ago
dwdude
dwdude
Quote Originally Posted by runekri3 View Post
Thats nice

It can be used to make duping easier aswell
Though the script I am using is a bit easier.

Good job
You are indeed correct there, it does

What script are you using? From the ones I've seen on the forum, they are slower and less customizable.
#3 · 13y ago
PU
purple_stuff
Cool, put it on ******
#4 · 13y ago
Flamewind
Flamewind
You should try AutoHotKey_L, it supports For loops and switch statements
#5 · 13y ago
runekri3
runekri3
Quote Originally Posted by dwdude View Post
You are indeed correct there, it does

What script are you using? From the ones I've seen on the forum, they are slower and less customizable.
I used flamewinds one.
I edited it a bit so that the only thing I need to do is press the hotkeys and walk to vault portal or walk to a chest.

Thanks flamewind
#6 · 13y ago
dwdude
dwdude
Quote Originally Posted by Flamewind View Post
You should try AutoHotKey_L, it supports For loops and switch statements
Don't worry, I use it. Not everybody does though, which is why I'm not using it in that script.

You don't really need for loops that much anyway, the default Loop keyword works similarly enough. The only part I've found myself using mostly is context-sensitive hotkeys using expressions. Same with switches. I can see a few spots in my script that could use a switch, but it doesn't change the product anyway, just the code, which works fine and doesn't require an extra thing to use it.

---------- Post added at 02:05 PM ---------- Previous post was at 02:03 PM ----------

Quote Originally Posted by runekri3 View Post
I used flamewinds one.
I edited it a bit so that the only thing I need to do is press the hotkeys and walk to vault portal or walk to a chest.

Thanks flamewind
That's the same thing as my script, except this has extra features which are used when you're actually playing the game too.
#7 · 13y ago
Flamewind
Flamewind
Quote Originally Posted by runekri3 View Post
What script are you using? From the ones I've seen on the forum, they are slower and less customizable.
I used flamewinds one.
I edited it a bit so that the only thing I need to do is press the hotkeys and walk to vault portal or walk to a chest.

Thanks flamewind
Np bro, the newer version of my script has more features, like a gooey (GUI lol).

Quote Originally Posted by dwdude View Post
Don't worry, I use it. Not everybody does though, which is why I'm not using it in that script.

You don't really need for loops that much anyway, the default Loop keyword works similarly enough. The only part I've found myself using mostly is context-sensitive hotkeys using expressions. Same with switches. I can see a few spots in my script that could use a switch, but it doesn't change the product anyway, just the code, which works fine and doesn't require an extra thing to use it.
Yea, same with my script, using for loops only helps by shortening the code used in finding the next slot in your inventory for exchanging items/trading.

I'll send you both my script. Feel free to look through the code.
#8 · 13y ago
runekri3
runekri3
Quote Originally Posted by dwdude View Post
Don't worry, I use it. Not everybody does though, which is why I'm not using it in that script.

You don't really need for loops that much anyway, the default Loop keyword works similarly enough. The only part I've found myself using mostly is context-sensitive hotkeys using expressions. Same with switches. I can see a few spots in my script that could use a switch, but it doesn't change the product anyway, just the code, which works fine and doesn't require an extra thing to use it.

---------- Post added at 02:05 PM ---------- Previous post was at 02:03 PM ----------



That's the same thing as my script, except this has extra features which are used when you're actually playing the game too.
His script has detection for the error messages which I didnt see in your script.
#9 · 13y ago
MA
marceliino
Quote Originally Posted by Flamewind View Post
Np bro, the newer version of my script has more features, like a gooey (GUI lol).


Yea, same with my script, using for loops only helps by shortening the code used in finding the next slot in your inventory for exchanging items/trading.

I'll send you both my script. Feel free to look through the code.
Can i get ur GUI For ur script
#10 · 13y ago
dwdude
dwdude
Quote Originally Posted by runekri3 View Post
His script has detection for the error messages which I didnt see in your script.
Because the timing is different for everyone. I made the script with people in mind that don't want to edit anything, thus having them rely on looking at the screen. Besides, releasing code that has completely automated duping is something I do not agree with and adding code that shows how to view connection messages on the screen does nearly all the work. From that point, editing the script to be completely autonomous is very easy.

---------- Post added at 03:43 PM ---------- Previous post was at 03:40 PM ----------

Quote Originally Posted by Flamewind View Post
Yea, same with my script, using for loops only helps by shortening the code used in finding the next slot in your inventory for exchanging items/trading.

I'll send you both my script. Feel free to look through the code.
Sure thing. I'll take a look at it. Just message it to me. A pastebin link or something works.
#11 · 13y ago
Flamewind
Flamewind
Sorry, was editing my script a bit, sending it to you now.
I also just thought of some new features, I'll do them tomorrow.
http://i.imgur.com/DguLP.png
Goooeeey
#12 · edited 13y ago · 13y ago
BA
bastix12
You have to finish BEFORE THE END THE BUILD
#13 · 13y ago
pings
pings
thanks nice job!!
#14 · 13y ago
runekri3
runekri3
Quote Originally Posted by dwdude View Post
Because the timing is different for everyone. I made the script with people in mind that don't want to edit anything, thus having them rely on looking at the screen. Besides, releasing code that has completely automated duping is something I do not agree with and adding code that shows how to view connection messages on the screen does nearly all the work. From that point, editing the script to be completely autonomous is very easy.

---------- Post added at 03:43 PM ---------- Previous post was at 03:40 PM ----------



Sure thing. I'll take a look at it. Just message it to me. A pastebin link or something works.
No Im not hating on you yours is very nice. Its just that yours is more gameplay oriented but his is more to duping. And his automation takes actually more effort then manual to me, thats why I edited it but I wont give it away because of the same reason you said.
Quote Originally Posted by Flamewind View Post
Sorry, was editing my script a bit, sending it to you now.
I also just thought of some new features, I'll do them tomorrow.
http://i.imgur.com/DguLP.png
Goooeeey
I actually tried to make the script detect how many ms to sleep but I couldnt find a way to like time how long it takes which would have a decent accuracy
#15 · 13y ago
Posts 1–15 of 46 · Page 1 of 4

Post a Reply

Similar Threads

  • Auto Shooter/Auto Clicker!By Takari in CrossFire Hacks & Cheats
    80Last post 16y ago
  • Runescape (Auto Typer/Auto Clicker) Nice layout - Simple & Easy to use!By tazzyopz in RuneScape Discussions
    4Last post 14y ago
  • Auto Shooter/Auto Clicker!By Takari in Combat Arms Europe Hacks
    46Last post 16y ago
  • [1.06.00] Maplestory Server Checker+Auto-Injector+Auto-LoginBy MagixAries in MapleStory Spammers, Injectors, and Multi Tools
    16Last post 14y ago
  • Auto Shooter/Auto Clicker!By Takari in Combat Arms Hacks & Cheats
    23Last post 16y ago

Tags for this Thread

#ahk#autohotkey#duping#teleport#trading