Results 1 to 8 of 8
  1. #1
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106

    [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
    Need some help to get back on track

    Find the pointer to the D3D9 Device (Not usefull for Cross)

    https://www.mpgh.net/forum/242-crossf...ice-lauwy.html

    Fix olly if scanning doesn't work

    https://www.mpgh.net/forum/242-crossf...ing-fails.html

    Unpack cshell.dll

    https://www.mpgh.net/forum/242-crossf...shell-dll.html

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

    ovenran (09-04-2010),UltraPGNoob (09-04-2010)

  3. #2
    Royku's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    G-Force.dll
    Posts
    3,015
    Reputation
    381
    Thanks
    3,308
    My Mood
    Devilish

    Hey

    IS this for VB??

  4. #3
    TheGamer321's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    62
    Reputation
    10
    Thanks
    2
    My Mood
    Worried
    nope its for C++...

    Question:
    i will put this on dllmain???

  5. #4
    Royku's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    G-Force.dll
    Posts
    3,015
    Reputation
    381
    Thanks
    3,308
    My Mood
    Devilish
    no than u get errors i puted it in .CPP file
    But i dont see somthink when i test it

  6. #5
    infidel_'s Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    blah
    Posts
    184
    Reputation
    10
    Thanks
    138
    My Mood
    Twisted
    Maybe because the settings are all 0.

  7. #6
    Royku's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    G-Force.dll
    Posts
    3,015
    Reputation
    381
    Thanks
    3,308
    My Mood
    Devilish
    ????????>????????????

  8. #7
    GER-Domi.'s Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    277
    Reputation
    15
    Thanks
    823
    My Mood
    Cool
    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

  9. The Following User Says Thank You to GER-Domi. For This Useful Post:

    ovenran (09-04-2010)

  10. #8
    bandi94's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    88
    Reputation
    10
    Thanks
    14
    My Mood
    Inspired
    LOL man CPP file =)) it is for dll and you need to edit the ptc part

Similar Threads

  1. MW2 split screen hack with SPINNING EMBLEM PS3
    By GOODBYE14 in forum Playstation Tutorials/Walkthroughs
    Replies: 4
    Last Post: 04-16-2011, 11:04 AM
  2. Need Hack Tester For My New Hack With Hotkeys
    By talamanak in forum CrossFire PH Discussions
    Replies: 16
    Last Post: 10-31-2010, 08:42 PM
  3. [Release] MrKiller2010 hacks with hotkey (ALL OS)
    By mrkiller2010 in forum CrossFire Hacks & Cheats
    Replies: 13
    Last Post: 09-05-2010, 01:09 AM
  4. [Release] Hack With Hotkeys
    By Mitsuskas in forum Combat Arms Europe Hacks
    Replies: 10
    Last Post: 03-07-2010, 08:44 AM
  5. [Release] My hack with hotkeys: datijn123 V2.0
    By datijn123 in forum WarRock - International Hacks
    Replies: 21
    Last Post: 10-09-2007, 12:17 PM