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 › [Source] Keyboard Menu 2.0

[Source] Keyboard Menu 2.0

Posts 1–6 of 6 · Page 1 of 1
PH
phoenixraider
[Source] Keyboard Menu 2.0
Title: Keyboard Menu 2.0
Author: Str1k3r21
Credits: Cobra (making a Tutorial with Highlights)

Update Log
1. Added Multi-State Options
2. Switched from "Use Unicode Character Set" to "Use Multi-Byte Character Set ".
3. Added Arrow Key Left usage
4. Added AddHotkeys();

Code:
#include "font.h"
#include <fstream>

void AddItem( char* string2, int hack, int i );
void SetHighlights(int menusize);

struct positions{
    float x;
    float y;
    float MaxItems;
    char *Title;
}Menu;

struct hacks{
    int hack1;
    int hack2;
}Hack;

int highlight[2] = {1,0};

bool CH_Menu = false;

void AddHotkeys(){
    if(highlight[1] == 1 && (GetAsyncKeyState(VK_RIGHT)&1)) if(Hack.hack1 <= 2){Hack.hack1++;}
    if(highlight[1] == 1 && (GetAsyncKeyState(VK_LEFT)&1)) if(Hack.hack1 != 0){Hack.hack1--;}
    if(Hack.hack1>2)Hack.hack1=0;
    if(highlight[2] == 1 && (GetAsyncKeyState(VK_RIGHT)&1)) if(Hack.hack2 <= 5){Hack.hack2++;}
    if(highlight[2] == 1 && (GetAsyncKeyState(VK_LEFT)&1)) if(Hack.hack2 != 0){Hack.hack2--;}
    if(Hack.hack2>5)Hack.hack2=0;
}

int current;
char Saveit[25];

void DrawMenu(LPDIRECT3DDEVICE8 pDevice)
{
    Menu.x = 10;
    Menu.y = 70;
    Menu.MaxItems = 2;
    Menu.Title = "Phoenix Menu";

if (GetAsyncKeyState(VK_INSERT)&1)
{
    CH_Menu = !CH_Menu;
}

if (CH_Menu)
{
    // How Many Hacks //
    SetHighlights(Menu.MaxItems);

    // Menu Background //
    Box(pDevice, 1, Menu.x - 5, Menu.y - 5, 120, 60, TBlue, White);

    // Menu Title //
    Text(Font10, Menu.Title, 1, Menu.x, Menu.y, Yellow, 0);

    AddHotkeys();

    // Menu Items //
    AddItem("Option1", Hack.hack1, 1);
    AddItem("Option2", Hack.hack2, 2);

}
}

void AddItem( char* string2, int hack, int i )
{
current = hack;
sprintf(Saveit, "%i", current);

float Equation = i * 15;
float x = Menu.x + 5;
float xs = Menu.x + 88;
float y = Menu.y + Equation;

if(highlight[i]==1)
Text(Font8, string2, 1, x, y, Red, 0);
else
Text(Font8, string2, 1, x, y, White, 0);
if(hack){
if(highlight[i]==1)
Text(Font8, Saveit, 1, xs, y, Red, 0);
else
Text(Font8, Saveit, 1, xs, y, White, 0);}
else if(!hack){
if(highlight[i]==1)
Text(Font8, Saveit, 1, xs, y, Red, 0);
else
Text(Font8, Saveit, 1, xs, y, White, 0);}
}

void SetHighlights(int menusize)
{
if(GetAsyncKeyState(VK_UP)&1)
{
    for(int i=0; i < menusize+1; i++)
    {
        if (highlight[i] == 1)
        {
            int a = i-1;

            if(a < 0)
            break;

        else
        {
            highlight[a]=1;
            highlight[i]=0;
            break;
        }
        }
    }
}

if(GetAsyncKeyState(VK_DOWN)&1)
{
    for(int i=0; i < menusize+2; i++)
    {
        if (highlight[i] == 1)
        {
            int a = i+1;

            if(a > menusize)
            break;

        else
        {
            highlight[a]=1;
            highlight[i]=0;
            break;
        }
        }
    }
}
}
Note:
This was my first attempt at a Multi-State Menu.

Picture
[IMG]http://www.*********.com/forum/attachments/d3d-programming/9587d1260001384-keyboard-menu-2-0-1-multistate-menu.jpg[/IMG]
#1 · 16y ago
Void
Void
Shouldn't you give us what's in font.h? I think that would help us understand a little more.
#2 · 16y ago
Matrix_NEO006
Matrix_NEO006
d3d8 sux in these days but thx for the source.
#3 · 16y ago
PH
phoenixraider
Quote Originally Posted by Davidm44 View Post
Shouldn't you give us what's in font.h? I think that would help us understand a little more.

font.h is just my ..
CreateD3DFont / RemoveD3DFont functions
#4 · 16y ago
Void
Void
Well, a while ago, I was looking around the web for a tutorial on how to draw over D3D environment using the addresses and I wasn't able to find anything. So I think this would really help me and alot of other people if you could post whatever's in font.h
#5 · 16y ago
TH
TheRealVB
Quote Originally Posted by Davidm44 View Post
Well, a while ago, I was looking around the web for a tutorial on how to draw over D3D environment using the addresses and I wasn't able to find anything. So I think this would really help me and alot of other people if you could post whatever's in font.h
for once i actually agree wit sum 1 on this site >,<
#6 · 16y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • [Source] Checkbox Menu by Str1k3r21 *D3D8*By phoenixraider in C++/C Programming
    7Last post 17y ago
  • [Source]Keyboard recorded, watcherBy /b/oss in Visual Basic Programming
    36Last post 16y ago
  • [Source]Simple menu classBy Void in C++/C Programming
    44Last post 15y ago
  • Warrock Source For MenuBy Gh0sts~l1f3 in WarRock Hack Source Code
    7Last post 15y ago
  • [Help] ERRO Source base menu combinedBy franpanpan in Combat Arms Coding Help & Discussion
    4Last post 15y ago

Tags for this Thread

None