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 › Other MMORPG Hacks › Trove Hacks & Cheats › Trove Discussions & Help › Request: Simple AHK Script.

Request: Simple AHK Script.

Posts 1–7 of 7 · Page 1 of 1
ZM
zminh1
Request: Simple AHK Script.
So I feel tired of spamming my mouse2 as a Tomb Raiser, anyone can make a simple script that when you press a key, it automatically presses mouse2 every 0.1s, and when you press again, it stops.

Something like this:

*Press X*
Mouse2()
Mouse2()
...
*Press X again*
Stop()
Sorry for my english .
#1 · 11y ago
maddoggy00
maddoggy00
In autoit, just change whatever you need the mouse button(s) to be. As it is here, clicking the mouse wheel will toggle on/off spamming the left mouse button. You can easily change whatever key/button you're spamming as well as they toggle key. GL



HotKeySet("{END}", "ForceEnd")
DeclareGlobals()
Local $hDLL = DllOpen("user32.dll")
While 1
If _IsPressed("04", $hDLL) Then
ToggleSpamLClick()
EndIf
If $SpamLClick=1 Then
MouseClick("Left")
EndIf
Sleep(80)
WEnd
Func ToggleSpamLClick()
If $SpamLClick=0 Then
$SpamLClick=1
For $click=1 to 5
MouseClick("Left")
sleep(80)
Next
Else
$SpamLClick=0
Sleep(500)
EndIf
EndFunc
Func DeclareGlobals()
Global $SpamLClick=0
EndFunc
Func ForceEND()
Exit
EndFunc
#2 · 11y ago
ZM
zminh1
Tyvm but when I run this script, it says there is an error on line 3.
#3 · 11y ago
taejim
taejim
@zminh1 ok this is really simple everytime you hit Alt it will spam right mouse 5 times and it will reload the script itself so you can just alt everytime you want to spam mouse2. Tell me if it works for you. BTW this is in AutoHotKey.

Code:
#WinActivateForce

Alt::
	Counter := 0
	
	While Counter = 0
		{
			Loop	
			{
				MouseClick, right
				if Counter = 5
				{
					Break
				}
				Sleep, 80
				Counter++
			}
		}
	Counter := 0
	Reload
	
Return
#4 · 11y ago
reppin
reppin
Here is my shot at it with my stop and start timer that I wrote for alot of my stuff.


To use F1 to start you will hear 1 ding. Then F1 again to stop you will hear 2 Dings.
Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
SetKeyDelay 10,50

AutoMouseClick = off



F1::
		If AutoMouseClick = off
			{
				AutoMouseClick = on
				SetTimer, AutoMouseClick, 100
				Ticks := 0
				SoundPlay, %A_WinDir%\Media\Windows Ding.wav
			} else 	If AutoMouseClick = on
			{

			  AutoMouseClick = off
			  SetTimer, AutoMouseClick, Off
		  	SoundPlay, %A_WinDir%\Media\Windows Ding.wav
        sleep 100
        SoundPlay, %A_WinDir%\Media\Windows Ding.wav
			}
return


AutoMouseClick:
 MouseClick, right
return
#5 · 11y ago
reppin
reppin
Opps miss post
#6 · 11y ago
GH
GHOSTKILL190
Quote Originally Posted by taejim View Post
@zminh1 ok this is really simple everytime you hit Alt it will spam right mouse 5 times and it will reload the script itself so you can just alt everytime you want to spam mouse2. Tell me if it works for you. BTW this is in AutoHotKey.

Code:
#WinActivateForce

Alt::
	Counter := 0
	
	While Counter = 0
		{
			Loop	
			{
				MouseClick, right
				if Counter = 5
				{
					Break
				}
				Sleep, 80
				Counter++
			}
		}
	Counter := 0
	Reload
	
Return
With this, When your in battle you hit ALT and it will right click 5 times, (Sends out your 5 minions), Then when your energy is regen, You can hit ALT again and it will repeat sending out 5 minions? (It automatically after pushing ALT with start script, and automatically stop. Until you hit ALT again?) I would have a hard time remembering to toggle it on / off.
#7 · 10y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

  • Simple AHK Bhop Script ( NEVER VAC)By Versecious in Counter-Strike 2 Coding & Resources
    4Last post 8y ago
  • Simple AHK ScriptBy noyster in Counter-Strike 2 Discussions
    3Last post 11y ago
  • AHK Scripts | Super Simple Recoil Reduction |By Vendetta773 in Counter-Strike 2 Scripts
    21Last post 10y ago
  • [Request] AHK script to stop your movementBy SethC in Counter-Strike 2 Coding & Resources
    12Last post 11y ago
  • ahk script request listBy dg123 in Realm of the Mad God Help & Requests
    14Last post 13y ago

Tags for this Thread

None