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 › Visual Basic 2008 SendKeys.Send() Help

Visual Basic 2008 SendKeys.Send() Help

Posts 1–2 of 2 · Page 1 of 1
User1
User1
Visual Basic 2008 SendKeys.Send() Help
When I'm using SendKeys.Send() for F5 or something like that it just freezes the focused window. Here is the a excerpt of my code.
Code:
   Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
        If m.Msg = WM_HOTKEY Then
            Dim id As IntPtr = m.WParam
            Select Case (id.ToString)
                Case "1"




                    Me.Cursor = New Cursor(Cursor.Current.Handle)
                    Cursor.Position = New Point(0, 0) 'I have no idea why I put this lol
                    Cursor.Position = New Point(248, 509)
                    mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
                    mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
                    Sleep(3000)
                    Cursor.Position = New Point(460, 514)
                    mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
                    mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
                    Sleep(11000)
                    SendKeys.Send("{F5}")
                    Sleep(11000)
                    Cursor.Position = New Point(666, 514)
                    mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
                    mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
                    Sleep(3000)
                    Cursor.Position = New Point(949, 729)
                    mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
                    mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
                    Sleep(3000)
Please Help!
(I rather not use SendKeys because it is very buggy for anything so far but couldn't get anything else...)
P.S. How can I exit a While statement anytime in the While statement. Like I'm running the above code (well the above code and a little more) in a While M=1 and while in the While statement the variable changes so its not equal one, how can I make is so it immediately jumps out of the While statement.
#1 · 17y ago
DA
daanishbhamla
Most Easy way:

My.Computer.Keyboard.sendkeys("A", true)

Lol.... To find Key Codes Type in Google
VB KeyCodes it'll be the first or second link

If Your Detecting a Hotkey then:

Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs)
Handles form1.KeyDown

Handles TextBox2.KeyDown
If e.KeyCode = Keys.F2 Then
end sub
#2 · edited 17y ago · 17y ago
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

  • Error In Visual Basic 2008 Express Edition ( Thanking People Who Help )By Gunner03 in Visual Basic Programming
    4Last post 18y ago
  • visual basic 2008 exxpreses helpBy skater310 in Visual Basic Programming
    2Last post 18y ago
  • HELP IN visual basic 2008By zmansquared in Combat Arms Hacks & Cheats
    2Last post 17y ago
  • Visual Basic 2008 HelpBy Stephen in Visual Basic Programming
    16Last post 16y ago
  • [Combat Arms] Help [Visual Basic 2008]By upperdragon in Visual Basic Programming
    18Last post 16y ago

Tags for this Thread

#2008#basic#sendkeyssend#visual