Page 1 of 3 123 LastLast
Results 1 to 15 of 35
  1. #1
    kmanev073's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Bulgaria
    Posts
    2,400
    Reputation
    97
    Thanks
    2,537
    My Mood
    Cool

    Talking Release CF_ShArKs Conosole Menu Source !

    Hello guys,
    As many of us may know i made a console menu for a dll hack so here its source. It gives send error report on the login screen, sometime gives send error if it stays opened for 11 seconds, sometime gives send error if it stays opened for 4 seconds. I dont need it is silly to keep such a beast in private...

    if you havent seen it there is it in action:


    here is the source + exaplanation...
    Credits: @kmanev073
    Special Thanks to: @giniyat101



    First of all we need the headers so add them:
    Code:
    #include <windows.h>
    #include <string.h>
    #include <string>
    #include <stdio.h>
    #include <iostream>
    #include <fstream>
    #include <shlwapi.h>
    #include <shlobj.h>
    #include <io.h>
    #include <fcntl.h>
    using namespace std;
    After that we need the whole definitions that will help us with the menu...
    Basicly my menu algorithm is made of arrays and we swap there elements data...
    So define the arrays:
    Code:
    string arrS[25] ={"-> ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   "},
    arrC1[25] ={"-> ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   ","   "},
    arrF[25] =
    {
    	"1. No Weapon Weight          ",
    	"2. Fast Walk in Scope-BETA   ",
    	"3. No Grenade Damage         ",
    	"4. Fast Knife                ",
    	"5. Knife 360 Degrees         ",
    	"6. No Fall Damage            ",
    	"7. Max Range                 ",
    	"8. No Knockback              ",
    	"9. No Bug Damage             ",
    	"10. See Ghosts               ",
    	"11. Knife OHK                ",
    	"12. Bigger Knife Range       ",
    	"13. Fast C4 Plant            ",
    	"14. Fast C4 Defuse           ",
    	"15. Max Defuse Distance-BETA ",
    	"16. Ghost Speed Hack-BETA    ",
    	"17. Small Crosshair          ",
    	"18. Crouch Speed-BETA        ",
    	"19. Repeat Fire Pistols      ",
    	"20. No Shotgun Spread        ",
    	"21. No Scope                 ",
    	"22. White Walls              ",
    	"23. No Sky                   ",
    	"24. Light Map                ",
    	"25. Panic Key (HOME)         "
    },
    arrM[25][2] =		
    {
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"}
    },
    	arrC2[25][2] =
    {
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"},
    	{"OFF","ON"}
    };
    the arrays with C in there names are the arrays used to check is there any action preformed so we reprint menu and prvent from falshing...

    after that we need some functions that are the main menu...
    Code:
    void DrawMenu()
    {
    	for (int i=0;i<25;i++)
    	{
    		cout<<arrS[i]<<arrF[i]<<arrM[i][0]<<endl;
    	}
    }
    
    void reprintMenu()
    {
    	system("cls");
    	HWND console = GetConsoleWindow();
    	RECT r;
    	GetWindowRect(console, &r);
    	MoveWindow(console, r.left, r.top, 320, 380, TRUE);
    	DrawMenu();
    }
    
    
    void ShowMenu()
    {
    	HANDLE lStdHandle;
    	DWORD hConHandle;
    	FILE *fp;
    
    	AllocConsole();
    	SetConsoleTitleA("CF_ShArKs Blazer");
    	// redirect unbuffered STDOUT to the console
    	lStdHandle = GetStdHandle(STD_OUTPUT_HANDLE);
    	hConHandle = _open_osfhandle(PtrToUlong(lStdHandle), _O_TEXT);
    	fp = _fdopen(hConHandle, "w");
    	*stdout = *fp;
    	setvbuf(stdout, NULL, _IONBF, 0);
    	// redirect unbuffered STDIN to the console
    	lStdHandle = GetStdHandle(STD_INPUT_HANDLE);
    	hConHandle = _open_osfhandle(PtrToUlong(lStdHandle), _O_TEXT);
    	fp = _fdopen(hConHandle, "r");
    	*stdin = *fp;
    	setvbuf(stdin, NULL, _IONBF, 0);
    	HWND console = GetConsoleWindow();
    	RECT r;
    	GetWindowRect(console, &r);
    	MoveWindow(console, r.left, r.top, 320, 380, TRUE);
    	isShown = true;
    	DrawMenu();
    }
    draw menu is the function that prints the arrays on the sceen...
    reprint menu is the function that calls the drawmenu function if there is any change
    ShowMenu function is the first time console showing it sets its size and title...

    so finally we need a base with a any kind of repeatin in it (usually the bases which support wallhack and hotkeys...) but here it is only the menu LOGIC
    Code:
    if(GetAsyncKeyState(VK_INSERT))
    	{
    		console = true;	
    		Sleep(50);
    	}
    
    	if (console) 	
    	{
    		if (isShown == false)
    		{
    			ShowMenu();
    		}
    		else
    		{
    			if (GetAsyncKeyState(VK_LEFT)) 
    			{
    				swap(arrM[x][0],arrM[x][1]);
    				Sleep(50);
    			}
    			if (GetAsyncKeyState(VK_RIGHT))
    			{
    				swap(arrM[x][1],arrM[x][0]);
    				Sleep(50);
    			}
    			if (GetAsyncKeyState(VK_DOWN))
    			{
    				x++;
    				if (x > 24)
    				{
    					x=0;
    					swap(arrS[24],arrS[0]);
    				}
    				else
    				{
    					swap(arrS[x],arrS[x-1]);
    				}			
    					Sleep(50);
    			}
    			if (GetAsyncKeyState(VK_UP))
    			{
    				x--;
    				if (x < 0)
    				{
    					x=24;
    					swap(arrS[24],arrS[0]);
    				}
    				else
    				{
    					swap(arrS[x],arrS[x+1]);
    				}
    				Sleep(50);
    			}
    			if(GetAsyncKeyState(VK_INSERT)) 
    			{
    				FreeConsole();
    				console = false;
    				isShown = false;
    			}	
    			for (int i=0;i<25;i++)
    			{
    				if (arrS[i] != arrC1[i] || arrM[i][0] != arrC2[i][0])
    				{
    					for (int y=0;y<25;y++) arrC1[y] = arrS[y];
    					for (int y=0;y<25;y++) arrC2[y][0] = arrM[y][0];
    					for (int y=0;y<25;y++) arrC2[y][1] = arrM[y][1];
    					reprintMenu();
    					Sleep(50);
    					break;
    				}
    				else continue;
    			}
    		}
    	}
    so you start from the zero elelent in the array and if there is key press it is modding the X variable which you have to define :P
    after that it swaps the places of the x and x-1, checks if there is a change apply changes to the C array and reprint...
    while the on/off just swaps the [x][0] and [x][1] of the state array and again there is a check like the first one...

    NOTE we allways print the same part of the arrays...

    so the menu is wokring but no action in the features...
    so got the place of the no weapon weight... it is the first of arrM
    so bcs we are printing only the column 0 we check only the 0 column and it become like that
    Code:
    if (arrm[0][0]=="ON") noWepChangeDelay = true;
    else noWepChangeDelay = false;



    that' s all give credits to me and giniyat if you use !
    also dont forget press thanks if you like it

    @Jigsaw, @Scata, @Hero, @Royku, @DaRk, @BACKD00R
    as for you minnons i think this is the fist menu of this type... i think that this post is very usifull for begginers in hacking and c++ bcs, it includes APIs, threading function, basic console functions and it can help the begginers to become prfessional... so please give it a sicky and make people happy !
    Last edited by kmanev073; 07-10-2012 at 12:51 AM.

  2. The Following 14 Users Say Thank You to kmanev073 For This Useful Post:

    -iFaDy..* (07-09-2012),3D (07-09-2012),ayawmanmik (07-09-2012),DOOP (07-11-2012),dungzkii (07-10-2012),Fly3r (07-09-2012),FrenchH4ck3r (07-11-2012),giniyat101 (07-09-2012),pDevice (07-25-2012),Pronome191 (07-13-2012),Ryuzaki™ (07-10-2012),Shartob1 (07-09-2012),Sirius Blac (07-09-2012),~[E].T (07-09-2012)

  3. #2
    DaRk's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Location
    MPGH
    Posts
    1,910
    Reputation
    119
    Thanks
    3,986
    My Mood
    Asleep
    nice tutorial
    thanks

  4. The Following User Says Thank You to DaRk For This Useful Post:

    Boykadu83 (07-09-2012)

  5. #3
    -iFaDy..*'s Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    C++/Mpgh.net/CF/devenv.exe
    Posts
    201
    Reputation
    22
    Thanks
    87
    My Mood
    Cool
    nice tutorial ( u are a pro coder )
    Need Any Help in C++/CrossFire? Just Pm me.

    My FB : Www.FaceBook.com/FaDiAtefAhlawy

    My Yahoo : Dodo_CrazyChat@yahoo.com

    My Hotmail : Dodo_CrazyChat@hotmail.com

  6. #4
    BACKD00R's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Brazil
    Posts
    10,711
    Reputation
    1814
    Thanks
    31,902
    My Mood
    Aggressive
    Good Job! Someone will come here and ask: how I use this?



     

    Skype : BACKD00R-MPGH

     

    • Contributor: October, 31th 2011
    • CA BR Minion: January, 03th 2012
    • CF AL Minion: April, 07th 2012
    • CA Minion: April, 15th 2012
    • CF Minion: July, 03th 2012
    • PB Minion: January, 25th 2013
    • AVA Minion : February, 02th 2013
    • Arctic Combat minion: April, 03th 2013
    • Warface Minion: April, 03th 2013

    • Minion + : July 08th 2012
    • Moderator : January 21th 2013
    • Global Moderator : August 1st 2013







  7. #5
    Shartob1's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    INDO-CROSSFIRE
    Posts
    140
    Reputation
    10
    Thanks
    14
    My Mood
    Amused
    Are you able to make a video how to make it etc.

  8. #6
    Fly3r's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Not telling.
    Posts
    720
    Reputation
    18
    Thanks
    265
    My Mood
    Paranoid
    @BACKD00R ^Thats pretty much what you said will happen ..
    Kmanev , awesome release man. Really like this kind of menu
    Joined MPGH: 07/08/09


    i used to tell arrow to the knee jokes then i died due to blood loss from takeing tomany arrows to the knee at once
    A network problem caused by you? What did you do? Trip over the cable?




  9. #7
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    iam 101 if you didnt notice ^^


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  10. #8
    jhadd4's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    in your heart
    Posts
    182
    Reputation
    10
    Thanks
    938
    My Mood
    Bored
    nice pretty good

  11. #9
    dungzkii's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    #defiine ADR_MPGH
    Posts
    1,473
    Reputation
    10
    Thanks
    2,175
    My Mood
    Sneaky
    nice tut sir ...

  12. #10
    kmanev073's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Bulgaria
    Posts
    2,400
    Reputation
    97
    Thanks
    2,537
    My Mood
    Cool
    Quote Originally Posted by giniyat101 View Post
    iam 101 if you didnt notice ^^
    oops but once there was 202 ok gonna change if i can

  13. #11
    DOOP's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Leyte
    Posts
    547
    Reputation
    44
    Thanks
    3,250
    Quote Originally Posted by BACKD00R View Post
    Good Job! Someone will come here and ask: how I use this
    i'm the #one :P

  14. #12
    Code[VB]'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    CODER
    Posts
    608
    Reputation
    11
    Thanks
    702
    My Mood
    Bitchy
    not bad, but i prefer DirectX to draw my stuff on the screen

  15. #13
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    Quote Originally Posted by kmanev073 View Post
    oops but once there was 202 ok gonna change if i can
    the 202 was perma banned due to posting externel links


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  16. #14
    DOOP's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Leyte
    Posts
    547
    Reputation
    44
    Thanks
    3,250
    @giniyat101 @kmanev073
    the menu work and the feature work. but after 2 or 3 second crossfire auto close
    Last edited by DOOP; 07-11-2012 at 02:10 AM.

  17. #15
    kmanev073's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Bulgaria
    Posts
    2,400
    Reputation
    97
    Thanks
    2,537
    My Mood
    Cool
    Quote Originally Posted by DOOP View Post
    @giniyat101 @kmanev073
    the menu work and the feature work. but after 2 or 3 second crossfire auto close
    i said that it gives error most of the time... strange dude i had 25 fetures and gived error every time now they are 33 and no error

  18. The Following User Says Thank You to kmanev073 For This Useful Post:

    DOOP (07-11-2012)

Page 1 of 3 123 LastLast

Similar Threads

  1. No menu source code
    By n4n033 in forum WarRock Hack Source Code
    Replies: 10
    Last Post: 08-06-2010, 08:23 PM
  2. [Help] I will release a no menu hack but ...
    By D e a t h h a u n t S in forum WarRock Discussions
    Replies: 17
    Last Post: 10-17-2009, 06:44 PM
  3. Open Source Release. Semi-Useless Timer Source Code!
    By User1 in forum Visual Basic Programming
    Replies: 6
    Last Post: 09-20-2009, 02:55 AM
  4. [Release] Killerld No Menu Hack {20.07.2009}
    By killerld in forum WarRock - International Hacks
    Replies: 3
    Last Post: 07-21-2009, 06:45 PM
  5. [Release] CS: 1.6, Source, & Condition Zero AimBot
    By DoD:s in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 3
    Last Post: 06-16-2009, 10:55 AM