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 › C++ Game Spammer Edited Code please help me resolving my problem

C++ Game Spammer Edited Code please help me resolving my problem

Posts 1–3 of 3 · Page 1 of 1
BL
blackgaming
C++ Game Spammer Edited Code please help me resolving my problem
I made this code but it doesn't work.. i have learn C++ so i try to make this:

#include <iostream>
#include <windows.h>
using namespace std;

int SpamNumber = 1000;
int SpamDelay = 100;
char *Game = "What Game ?";
HWND hwnd = FindWindow(0, Game);

char *Message[] = {
"\nTHE EPICLY AMAZING -- | <| -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <>| -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <><| -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | <>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- |<>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- |>< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- |< | -- OLYMPIC FISH!!\n",
"\nTHE EPICLY AMAZING -- | | -- OLYMPIC FISH!!\n"
};

void GameCheck();
void PressButton(HWND, BYTE);
void TypeText(HWND, char[]);
void SpamGame(HWND);

int main() {

while (true) {
Sleep(500);

GameCheck();
if (GetAsyncKeyState(VK_HOME)) { SpamGame(hwnd); }
if (GetAsyncKeyState(VK_END)) { break; }
}

return 0;
}

void GameCheck() {

if (!FindWindow(0, Game)) { MessageBox(0, "Game Window not found", " ", 0); exit(0); }

return;
}

void PressButton(HWND hwnd, BYTE vk) {

SendMessage(hwnd, vk, WM_KEYDOWN, 0);
PostMessage(hwnd, WM_CHAR, vk, 0);
SendMessage(hwnd, vk, WM_KEYUP, 0);

return;
}

void TypeText(HWND hwnd, char String[]) {

for (int x = 0; String[x] != 0; x++) { PressButton(hwnd, String[x]); }

return;
}

void SpamGame(HWND hwnd) {

int maxMessages = (sizeof Message) / (sizeof Message[0]);

for (int x = 0; x <= SpamNumber; x++) {
cout << "ITERATION: " << x << " out of: " << SpamNumber << endl;
if (GetAsyncKeyState(VK_INSERT)) { break; } /* Pause execution */

for (int NUMBER = 0; NUMBER < maxMessages; NUMBER++) {
if (GetAsyncKeyState(VK_END)) { return; } /* Exit prematurely */
TypeText(hwnd, Message[NUMBER]);
Sleep(SpamDelay);
}
}

return;
}
THis is my Problem:
1>------ Build started: Project: Try Chat Spammer, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>c:\documents and settings\raquel\my documents\visual studio 2008\projects\try chat spammer\try chat spammer\main.cpp(8) : error C2664: 'FindWindowW' : cannot convert parameter 2 from 'char *' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\raquel\my documents\visual studio 2008\projects\try chat spammer\try chat spammer\main.cpp(52) : error C2664: 'FindWindowW' : cannot convert parameter 2 from 'char *' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\raquel\my documents\visual studio 2008\projects\try chat spammer\try chat spammer\main.cpp(52) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [22]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>Build log was saved at "file://c:\Documents and Settings\Raquel\My Documents\Visual Studio 2008\Projects\Try Chat Spammer\Try Chat Spammer\Debug\BuildLog.htm"
1>Try Chat Spammer - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#1 · 15y ago
MA
mavi2k
You leeched it, not "made it".
#2 · 15y ago
Hell_Demon
Hell_Demon
Using SendMessage() - C And C++ | Dream.In.Code

Bad leecher is bad.
Now gtfo.
#3 · 15y ago
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Tags for this Thread

None