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 › C++/C Programming › Help with sending keys

Help with sending keys

Posts 1–5 of 5 · Page 1 of 1
CR
Crash
Help with sending keys
I need help with sending the space key to Combat Arms.

Apparently you can't do VKs anymore since Nexon patched them or something like that. So my bunny hop doesn't work. It's MSVC++ and Windows forms project...

I have tried :
SendKeys::Send();
SendKeys::SendWait();
GenerateKey(); (Person made function)
keybd_event( VK_SPACE, 0x45, KEYEVENTF_EXTENDEDKEY, 0 );
keybd_event( VK_SPACE, 0x45, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0 );

etc...
Nothing seems to work. Is there any way I can do this?
#1 · 16y ago
Void
Void
You can try PostMessage()

PostMessage Function()

I did a little demo for Notepad for you.

Code:
#include <windows.h>
#include <iostream>

using namespace std;

HWND hwnd;
HWND child;

int main()
{
    hwnd = FindWindow(0,"Untitled - Notepad");
    if(!hwnd)
    {
             return 0;
    }
    child = FindWindowEx(hwnd,0,"edit",0);
    if(!child)
    {
              return 0;
    }
    
    SetForegroundWindow(child);
    Sleep(500);
           
    PostMessage(child,WM_KEYDOWN,(WPARAM)VkKeyScan('w'),0);
    
    cin.get();
}
Pretty much just types W into the edit box on NotePad.

FindWindowEx was just to find the child window, in this case it's the giant edit box where you type. I don't think you need to do that for CA though.
Code:
child = FindWindowEx(hwnd,0,"edit",0);
"edit" is the system class. If you were to make a textbox using windows api, the system class would be "edit", if you were making a button, it would be "button" etc etc..

More info here:

CreateWindow Function()
#2 · edited 16y ago · 16y ago
CR
Crash
Quote Originally Posted by Davidm44 View Post
You can try PostMessage()

PostMessage Function()

I did a little demo for Notepad for you.

Code:
#include <windows.h>
#include <iostream>

using namespace std;

HWND hwnd;
HWND child;

int main()
{
    hwnd = FindWindow(0,"Untitled - Notepad");
    if(!hwnd)
    {
             return 0;
    }
    child = FindWindowEx(hwnd,0,"edit",0);
    if(!child)
    {
              return 0;
    }
    
    SetForegroundWindow(child);
    Sleep(500);
           
    PostMessage(child,WM_KEYDOWN,(WPARAM)VkKeyScan('w'),0);
    
    cin.get();
}
Pretty much just types W into the edit box on NotePad.

FindWindowEx was just to find the child window, in this case it's the giant edit box where you type. I don't think you need to do that for CA though.
Code:
child = FindWindowEx(hwnd,0,"edit",0);
"edit" is the system class. If you were to make a textbox using windows api, the system class would be "edit", if you were making a button, it would be "button" etc etc..

More info here:

CreateWindow Function()
Thanks I'll try this out now.
#3 · 16y ago
why06
why06
That ought to work, but PostMessage() is kind of slow. A Global Key board hook would be faster and the better choice. I believe BA posted some source for one. Copy and paste till your heart desire.

Hmmmm... wdf is HD when you need him, must have worn himself after that VB thing...
#4 · 16y ago
TE
TehKiller
Quote Originally Posted by why06 View Post
That ought to work, but PostMessage() is kind of slow. A Global Key board hook would be faster and the better choice. I believe BA posted some source for one. Copy and paste till your heart desire.

Hmmmm... wdf is HD when you need him, must have worn himself after that VB thing...
WUT?! I'm still here just stopped flaming noobs, instead I wait for my mignions(crushed and ilovecookies) do it for me my plan isnt working yet tho, they are too soft and squishy, like the squishy toys.
But I will bend them to my will >=D soon they will flame ch00bs just like me ill be so proud :P
#5 · 16y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • Kingz Of Key's V2.0 Need Help With Release!By Redbull in WarRock - International Hacks
    13Last post 19y ago
  • Send.keys help...By tester181 in Visual Basic Programming
    17Last post 14y ago
  • Hi, i need help with packet sendingBy Prosper in General Hacking
    0Last post 18y ago
  • visaul basic 2008 aimbot plz send vids and help with codeingBy por3rog3 in General
    14Last post 16y ago

Tags for this Thread

#keys#sending