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 › Programming › Visual Basic Programming › [Help] Hotkeys Working In Background

[Help] Hotkeys Working In Background

Posts 1–12 of 12 · Page 1 of 1
Shadeyz346
Shadeyz346
[Help] Hotkeys Working In Background
Hello MPGH , firstly thx for [mpgh] zoom for helping me and secondly i cant add hotkeys that works in backgrounds its like making an auto clicker with hotkeys but hotkeys doesnt work if the program is not on top help plox to make the hotkeys work in background , thx
PS : sorry for bad english & grammer

EDIT : Added files
virus scan http://www.virustotal.com/analisis/1...f93-1279715155
#1 · edited 16y ago · 16y ago
Blubb1337
Blubb1337
Cool, and since we don't know your code we cannot help you...

Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Int16
on timer_tick(interval 100 is fine, do not forget to enable it -.-)

Code:
dim f1 as boolean

f1 = getasynckeystate(keys.f1)

if f1 then
'whatever
end if
#2 · 16y ago
Shadeyz346
Shadeyz346
Quote Originally Posted by Blubb1337 View Post
Cool, and since we don't know your code we cannot help you...

Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Int16
on timer_tick(interval 100 is fine, do not forget to enable it -.-)

Code:
dim f1 as boolean

f1 = getasynckeystate(keys.f1)

if f1 then
'whatever
end if
i already know that -.-'' but its an auto clicker

watch code

Code:
Public Class Form1

    Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
You cant do GetAsyncKeyState here cause if i put it first the auto clicker wont work i made this one

EDIT : Also I will attach the auto clicker and .vb files in the first post so if u need the files
#3 · edited 16y ago · 16y ago
Blubb1337
Blubb1337
just put it into a sub and execute the sub when the key is pressed...it'll work...
#4 · 16y ago
NextGen1
NextGen1
Get virus scans and we will get it approved.
#5 · 16y ago
Shadeyz346
Shadeyz346
Quote Originally Posted by Blubb1337 View Post
just put it into a sub and execute the sub when the key is pressed...it'll work...
u mean like making a sub of form then put all things in it then make it with shortcut????

edit the code for me or explain

thx
#6 · 16y ago
'Bruno
'Bruno
Quote Originally Posted by iTzLightingShade View Post
u mean like making a sub of form then put all things in it then make it with shortcut????

edit the code for me or explain

thx
what about trying it yourself? :s just my thought...
#7 · 16y ago
EN
[MPGH]EndRiT
Tested, it works well.
File approved.
#8 · 16y ago
QD
qddW$#%^jtyjtyj
Code:
Public Class Form1

    Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Int16
And then add all that blubb sayd in the timer
#9 · 16y ago
NextGen1
NextGen1
Thanks Endrit, The code is fine, I viewed it, just want to get the new guys in the habit of adding their virus scans


As far as the topic goes, I just read the title, It's not really a hard task and there are tons of ways of achieving this, Thanks to Hej(zoom) (or was it someone else) , there is a tutorial and creating a hotkeys Module to be used globally. So as long as the application is running it should work.

In either case, the comment "Do it for me" will get you no where here.

Follow the instructions above and do it yourself, then you can learn...

If you are going to use a timer, I suggest how to learning Multi thread, just a note.


System Wide hotkeys is your best approach


#10 · edited 16y ago · 16y ago
aLcohoL_95
aLcohoL_95
set your form's keypreview to "True" From properties
and add this codes to Form1-KeyDown
[php]If e.Keycode = Keys.F5 'or wut else Then
Your.Command
End If[/php]
#11 · 16y ago
Blubb1337
Blubb1337
Those hotkeys will only take affect if you focus the form, he probably wants system- and not program-wide hotkeys...

Though, this does not help him at all, if he does not get the timer working.
#12 · 16y ago
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

  • Help: HotKey Wont work!By phooj in Combat Arms Coding Help & Discussion
    5Last post 15y ago
  • [HELP] HotKeysBy Zhhot in Visual Basic Programming
    3Last post 16y ago
  • [HELP] hotkey #$*/"$#)(*&?"By herowarz in Visual Basic Programming
    5Last post 18y ago
  • [HELP]Xfire works??By daniliard in General
    6Last post 16y ago
  • [HELP]=HotkeysBy theavengerisback15 in Visual Basic Programming
    6Last post 16y ago

Tags for this Thread

None