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[Solved]

[Help]Hotkeys[Solved]

Posts 1–11 of 11 · Page 1 of 1
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
[Help]Hotkeys[Solved]
hai guys..
i want to add hotkeys for my program but they dont work...
i use at the Events of the form....
KeyDown>
Code:
if keys.f1 = true then
<action>
end if
so why they did not work?

PS:
there is Blubb
#1 · 16y ago
'Bruno
'Bruno
i will give you a tip.

Code:
e.
#2 · 16y ago
Jason
Jason
Although brinuz's will work with the form focussed, I find that global hotkeys are much better.

Add this declaration

[php]
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Int16
[/php]

And then simply change your code to this:

[php]
if GetAsyncKeyState(keys.f1) then
'<action>'
end if
[/php]

And that's all there is to it.
#3 · 16y ago
Blubb1337
Blubb1337
Make sure you put that in a timer and enable it ^.-
#4 · 16y ago
Jason
Jason
Quote Originally Posted by Blubb1337 View Post
Make sure you put that in a timer and enable it ^.-
Oopsies, forgot that Thanks Kevin
#5 · 16y ago
.C
.Celtics
@J-Deezy
Those that hotkey work even itf the form is not focused?
#6 · 16y ago
Blubb1337
Blubb1337
Just pointing it out so he doesn't put it into the keydown event ^_^

Keydown = only affects if the control is focused
Getasynckeystate = global
#7 · 16y ago
'Bruno
'Bruno
API's ftw ^^
#8 · 16y ago
Jason
Jason
Quote Originally Posted by .Celtics View Post
@J-Deezy
Those that hotkey work even itf the form is not focused?
It most certainly does! Try it out on a timer_tick event

[php]

If GetAsyncKeyState(Keys.F5) Then
MsgBox("OH MY SWEET LORD, J-DEEZY SAID THE TREWTH!")
End if

[/php]
#9 · 16y ago
.C
.Celtics
Quote Originally Posted by J-Deezy View Post


It most certainly does! Try it out on a timer_tick event

[php]

If GetAsyncKeyState(Keys.F5) Then
MsgBox("OH MY SWEET LORD, J-DEEZY SAID THE TREWTH!")
End if

[/php]
Ok thanks for the info!
#10 · 16y ago
Jason
Jason
Quote Originally Posted by .Celtics View Post
Ok thanks for the info!
Anytime
#11 · 16y ago
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

  • [HELP]Hotkeys[Solved]By luckie12 in Visual Basic Programming
    3Last post 16y ago
  • [HELP]Hotkeys[Solved]By dylan40 in Visual Basic Programming
    16Last post 16y ago
  • [Help]Easy Global hotkeys[Solved]By jaake in Visual Basic Programming
    7Last post 16y ago
  • [Help]64Bit Hotkeys[Solved]By xsaban13x in Visual Basic Programming
    27Last post 16y ago
  • i need help with hotkeys...[SOLVED]By NeOxx in CrossFire Help
    3Last post 16y ago

Tags for this Thread

None