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] How do you make SendKeys work?

[HELP] How do you make SendKeys work?

Posts 1–6 of 6 · Page 1 of 1
Gasps Its Michael Jackson
Gasps Its Michael Jackson
[HELP] How do you make SendKeys work?
I'm personally making a On-Screen Number Pad right now for users who use laptops. And when I debugged it, and tried it, it doesn't work! So I'm guessing I need to have a target process or something. But I don't know how! Help! Here's my code:

[PHP]Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim TargetProcess As Process() = Process.GetProcessesByName(TextBox1.Text)

End Sub
End Class[/PHP]

That's the TargetProcess. Here's the Number Pad:

[PHP]Public Class Form2

Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click

End

End Sub

Private Sub AlwaysOnTopToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AlwaysOnTopToolStripMenuItem.Click

If AlwaysOnTopToolStripMenuItem.Checked = True Then

Me.TopMost = True

Else

Me.TopMost = False

End If

End Sub

Private Sub Button0_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button0.Click

SendKeys.SendWait(Keys.NumPad0)

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

SendKeys.SendWait(Keys.NumPad1)

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

SendKeys.SendWait(Keys.NumPad2)

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

SendKeys.SendWait(Keys.NumPad3)

End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click

SendKeys.SendWait(Keys.NumPad4)

End Sub

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click

SendKeys.SendWait(Keys.NumPad5)

End Sub

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click

SendKeys.SendWait(Keys.NumPad6)

End Sub

Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click

SendKeys.SendWait(Keys.NumPad7)

End Sub

Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click

SendKeys.SendWait(Keys.NumPad8)

End Sub

Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click

SendKeys.SendWait(Keys.NumPad9)

End Sub

Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click

SendKeys.SendWait(Keys.Divide)

End Sub

Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click

SendKeys.SendWait(Keys.Multiply)

End Sub

Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click

SendKeys.SendWait(Keys.Decimal)

End Sub

Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click

SendKeys.SendWait(Keys.Enter)

End Sub

Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click

SendKeys.SendWait(Keys.Add)

End Sub

Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button15.Click

SendKeys.SendWait(Keys.Subtract)

End Sub
End Class[/PHP]

Help!
#1 · 16y ago
D e a t h h a u n t S
D e a t h h a u n t S
Wouldn't it just be easier to make a timer for each button lets say we have button1 and timer1 heres how it could be:

button1:
Timer1.start

Timer1:
sendkeys.send("1")

then for the rest of the buttons just replace the 1 with whatever eg:

sendkeys.send("/") // divide
sendkeys.send("+") // add
sendkeys.send("*") // multiply
sendkeys.send(".") // decimal

ECT ECT ..

wouldn't that just be easier?


edit: SHIT SORRY FOR BUMP didn't realize date, this guy needed help though :/ sorry .. should i delete this post?
#2 · edited 16y ago · 16y ago
NextGen1
NextGen1
/moved to vb section.

Have fun guys
#3 · 16y ago
Blubb1337
Blubb1337
Why would you want to send those keys btw?

Sendkeys isn't working in Games btw.
#4 · 16y ago
Jason
Jason
Quote Originally Posted by NextGen1 View Post
/moved to vb section.

Have fun guys
Uh it was a 3 week bump. Ohsnap.

Quote Originally Posted by Blubb1337 View Post
Why would you want to send those keys btw?

Sendkeys isn't working in Games btw.
I think his problem was sending the keys to a target process, because it's an on-screen keyboard you have to have that formed focused to click the keys, so that means it will only send the keys to the "keyboard form", essentially useless. He needs to know how to send the keystroke to an open process.
#5 · edited 16y ago · 16y ago
'Bruno
'Bruno
I made a C# project which had a touch screen keyboard, back in that time (was at school), i was working with MDI, and i was focusing the last write-able control that was selected, and then executed send keys.

About sending it to another application.. well.. you can always try Postmessage/Sendmessage...

Or before the Sendkeys.Send() code, find the process hwnd and use SetForegroundScreen(), plus to send keystrokes.. sendkeys won't work (i think j-deezy said that already), so use another API.

Edit: although it's an old topic, it might be useful for someone else with the same problem. (Anyway they never use search)
#6 · edited 16y ago · 16y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • [HELP] How do you make SendKeys work?By Gasps Its Michael Jackson in Visual Basic Programming
    4Last post 16y ago
  • [HELP] How would you make a G36E, into a M417 Combat, being that they have differnt mBy hellohigoodbye in Combat Arms Mods & Rez Modding
    1Last post 16y ago
  • [Help] How do you make a textbox show as *? Like for a password box in VBBy Gasps Its Michael Jackson in Programming Tutorials
    10Last post 16y ago
  • how do you make weapon mods work?By cyeo1 in Combat Arms Mod Discussion
    2Last post 16y ago
  • [Help] How do you get DDD555 aimbot to work with Xfire chams?By HAPPYxHACKING in Combat Arms Hacks & Cheats
    1Last post 17y ago

Tags for this Thread

None