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 with Vb 2008 (Hotkeys)

Help with Vb 2008 (Hotkeys)

Posts 1–15 of 18 · Page 1 of 2
NGT.Rock
NGT.Rock
Help with Vb 2008 (Hotkeys)
Hello, i need help with my Vb 2008
im making hotkeys for my new program but im stuck... Because im going to make so button1 and button2 clicks with f1 and f2 but it don't seems to work please help me
#1 · 16y ago
Blubb1337
Blubb1337
button1_click(sender,e)
#2 · 16y ago
NGT.Rock
NGT.Rock
Quote Originally Posted by Blubb1337 View Post
button1_click(sender,e)
still not working
#3 · 16y ago
Blubb1337
Blubb1337
declare:

Code:
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Int16
on hotkey tick
Code:
dim f1 as boolean = getasynckeystate(keys.f1)
dim f2 as boolean = getasynckeystate(keys.f2)

if f1 then
button1_click(sender,e)
end if

if f2 then
button2_click(sender,e)
end if
#4 · 16y ago
Jason
Jason
Quote Originally Posted by NGT.Rock View Post
still not working
Okay this works for me:

Use this import (add it above "Public Class Form1")
[php]
Imports System.Runtime.InteropServices
[/php]

Then remove your current "GetAsyncKeyState" declaration and add this

[php]
<DllImport("user32.dll")> _
Private Shared Function GetAsyncKeyState(ByVal vKey As Integer) As UShort
End Function
[/php]

Then change your hotkey timer code to this:

[php]
dim hotkey1, hotkey2 as boolean

hotkey1 = GetAsyncKeyState(Keys.F1)
hotkey2 = GetAsyncKeyState(Keys.F2)

if hotkey1 = True then

Button1_Click(sender, e)

Else if hotkey2 = True then

Button2_Click(sender, e)

End if

[/php]
#5 · 16y ago
NGT.Rock
NGT.Rock
Quote Originally Posted by Blubb1337 View Post
declare:

Code:
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Int16
on hotkey tick
Code:
dim f1 as boolean = getasynckeystate(keys.f1)
dim f2 as boolean = getasynckeystate(keys.f2)

if f1 then
button1_click(sender,e)
end if

if f2 then
button2_click(sender,e)
end if
thank's it works now . BUT i have still one problem, when i open combat armsand click F2 Combat arms auto minimize and the program pops up and internet turn's off then i need to go back to combat arms and do it and same is when i turn it off.

so my question is how can i fix so it runs in the backround without minimize combat arms when clicking f1 or f2
#6 · 16y ago
Hassan
Hassan
Quote Originally Posted by NGT.Rock View Post
thank's it works now . BUT i have still one problem, when i open combat armsand click F2 Combat arms auto minimize and the program pops up and internet turn's off then i need to go back to combat arms and do it and same is when i turn it off.

so my question is how can i fix so it runs in the backround without minimize combat arms when clicking f1 or f2
Button 1's and Button 2's code will help better !!
#7 · 16y ago
Jason
Jason
im guess

[php]

Shell("NET START DHCP")

[/php]

and

[php]

Shell("NET STOP PHP")


[/php]
#8 · 16y ago
NGT.Rock
NGT.Rock
Quote Originally Posted by FLAMESABER View Post
Button 1's and Button 2's code will help better !!
But i mean ingame!
dudes people want hotkeys so it will be easier to use it ingame. So u don't need to minimize and then click Start / stop
#9 · 16y ago
Blubb1337
Blubb1337
Post your button1/button2 events codes.
#10 · 16y ago
Hassan
Hassan
Quote Originally Posted by NGT.Rock View Post
But i mean ingame!
dudes people want hotkeys so it will be easier to use it ingame. So u don't need to minimize and then click Start / stop
We are not choobs...We know but we need to see the code of button1 and button 2 to see what's causing the game to lose focus !!!
#11 · 16y ago
NGT.Rock
NGT.Rock
Quote Originally Posted by FLAMESABER View Post
We are not choobs...We know but we need to see the code of button1 and button 2 to see what's causing the game to lose focus !!!
the code for button 1 and button 2 is
Button 1 = Shell ("net start dhcp")
Button 2 = Shell ("net stop dhcp")
#12 · 16y ago
Blubb1337
Blubb1337
why dont you just put it on your timer instead of using buttons.
#13 · 16y ago
NGT.Rock
NGT.Rock
Quote Originally Posted by Blubb1337 View Post
why dont you just put it on your timer instead of using buttons.
so u can choose btw both , and i don't know how to change it to timer only
#14 · 16y ago
Blubb1337
Blubb1337
Ever thought about simply replacing button1_click(sender,e) with the shell command?
#15 · 16y ago
Posts 1–15 of 18 · Page 1 of 2

Post a Reply

Similar Threads

  • Help With Vb 2008By pashak in Combat Arms Hack Coding / Programming / Source Code
    3Last post 16y ago
  • Need help with VB 2008By NGT.Rock in Visual Basic Programming
    14Last post 16y ago
  • [Help]With Hotkeys..By dor619 in Visual Basic Programming
    2Last post 18y ago
  • anyone help with scope hotkeyBy ll Asura ll in Visual Basic Programming
    7Last post 18y ago
  • Mass help with Hotkeys WarrockBy araz in Visual Basic Programming
    3Last post 18y ago

Tags for this Thread

None