[source] menu screen hack with hotkey

Posts 1–8 of 8 · Page 1 of 1
[source] menu screen hack with hotkey
Code:
// hotkey fix.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <Windows.h>

using namespace std;

int lees() {
	int x;
	ifstream myfile2;
	myfile2.open("c:\\lauwy.txt");
	if (!myfile2) {
		exit(1);
	}

	while (myfile2 >> x) {
		cout << x;
	}
	myfile2.close();
	system("pause");
	return 0;
}

int main() {
	bool dozen = false;
	bool nosky = false;
	bool nosmoke = false;
	bool white = false;
	bool whireworld = false;
	bool playerwire = false;
	bool skel = false;
	bool nogun = false;
	bool fogenable = false;
	RegisterHotKey(NULL,1,MOD_SHIFT,0x31);    
    RegisterHotKey(NULL,2,MOD_SHIFT,0x32);        
    RegisterHotKey(NULL,3,MOD_SHIFT,0x33);            
    RegisterHotKey(NULL,4,MOD_SHIFT,0x34);    
	RegisterHotKey(NULL,5,MOD_SHIFT,0x35);    
    RegisterHotKey(NULL,6,MOD_SHIFT,0x36);        
    RegisterHotKey(NULL,7,MOD_SHIFT,0x37);            
    RegisterHotKey(NULL,8,MOD_SHIFT,0x38);    
	RegisterHotKey(NULL,9,MOD_SHIFT,0x39);
	cout << "hier";
   
    MSG msg = {0};

       while (GetMessage(&msg, NULL, 0, 0) != 0) {
			if (msg.message == WM_HOTKEY) {
				cout << "hier";
				if( msg.wParam == 1 ) {
					dozen = !dozen;
				}
				if( msg.wParam == 2 ) {
					nosky = !nosky;
				}
				if( msg.wParam == 3 ) {
					nosmoke = !nosmoke;
				}
				if( msg.wParam == 4 ) {
					white = !white;
				}
				if( msg.wParam == 5 ) {
					whireworld = !whireworld;
				}
				if( msg.wParam == 6 ) {
					playerwire = !playerwire;
				}
				if( msg.wParam == 7 ) {
					skel = !skel;
				}
				if( msg.wParam == 8 ) {
					nogun = !nogun;
				}
				if( msg.wParam == 9 ) {
					fogenable = !fogenable;
				}
				ofstream myfile;
				myfile.open ("c:\lauwy.txt");
				myfile << "" << dozen << "\n"
				<< "" << nosky << "\n"
				<< "" << nosmoke << "\n"
				<< "" << white << "\n"
				<< "" << whireworld << "\n"
				<< "" << playerwire << "\n"
				<< "" << skel << "\n"
				<< "" << nogun << "\n"
				<< "" << fogenable << "\n";
				myfile.close();
			}
	   }
	   return 0;
}
RegisterHotKey example, this writes to c:\lauwy if you enable or disable boxes. with lees() you can read what the user changed. add lees() in a dll make a menu screen and you are done
Hey
IS this for VB??
nope its for C++...

Question:
i will put this on dllmain???
no than u get errors i puted it in .CPP file
But i dont see somthink when i test it
Maybe because the settings are all 0.
????????>????????????
hmmmm i think it can t be work becouse the bypass is missing.. and you have to add the functions example ptc commands or memory addresses
LOL man CPP file =)) it is for dll and you need to edit the ptc part
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us