Making A Simple Program

This is a discussion on Making A Simple Program within the C++ Programming forums, part of the General Programming Boards category; Here is my idea, i have no clue where to start. I need a program that will disable my "insert" ...

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    11

    Exclamation Making A Simple Program

    Here is my idea, i have no clue where to start.

    I need a program that will disable my "insert" and "f12" and "f6" keys on startup.

    Then after it does that, a box will come up saying "You may now start your game" [OK]

    Im taking all help, thank you.


    I think the text part will be easy, but disabling the keys is where i have no clue where to start.

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    You cant really disable keys unless you write a custom keyboard driver. Doing that is non-trivial. You might be able to intercept teh WM_key messages from teh taget applicatiosn message loop, but again, that is non-trivial and wont catch 100% of them.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by switch-blade View Post
    Here is my idea, i have no clue where to start.

    I need a program that will disable my "insert" and "f12" and "f6" keys on startup.

    Then after it does that, a box will come up saying "You may now start your game" [OK]

    Im taking all help, thank you.


    I think the text part will be easy, but disabling the keys is where i have no clue where to start.
    Why do you feel that you need to disable those keys? What is the purpose of doing so?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    11
    well, in the game counterstrike1.6/source the main keys to startup your hacks ingame are those 3, and if you have that running, theres no way to do it.

    If i can't disable keys, Then can you guys help me out with the text part of it?

    After you double click the program, a box comes up saying You may now start your game.
    Last edited by switch-blade; 09-05-2008 at 11:06 AM.

  5. #5
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    ...

    Well normally I applaud honesty, but even I make exceptions to my rules. Dude, first of all, your original post almost left me thinking you were trying to do some sort of automated BIOS reflasher or something. Secondly, and more importantly, not only are you too lazy to play a game righteously, but you are too lazy to write your own hacks. Furthermore, you are too lazy to even hit a couple keys to initialize those hacks!

  6. #6
    Registered User
    Join Date
    Sep 2008
    Posts
    11
    wowwwww, are you being serious right now?

    im making a cheap/prettybad anti-cheat for a gaming league.

    cant you tell? that way they cant activate their hacks during a match, unless the owner of the hacks actually changes the activation key - which i doubt would happen.

    understand? so i need help doing that. - why the ........ would i want to disable the activation keys for hacks if i were using them??? seriously man.

  7. #7
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Ah ok. I am known to misread things, that is why I chose a field that relies more on mathematics than reading

    I would just go the device driver route for this one. Its probably the easiest way of making sure the keys are never processed. A hook *could* work too. You could install a low level key monitor hook, and have it try to intercept any of those keys from being processed by the game.

    Neither of these solutions is going to be a couple lines of code...

  8. #8
    Registered User
    Join Date
    Sep 2008
    Posts
    11
    i understand, do you know where i can get step by step help with someone at.

    and thank you for understanding, i didnt mean to come on that way.

    I just hate hackers all together.

  9. #9
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    I just hate hackers all together.
    [nitpick]

    I don't know about disabling keys, but I think the keybd_event() function works even when keys are pressed in other applications. In other words, you'd be able to detect when those keys were pressed, if not prevent them.

    I have no idea if certain programs can disable this detection.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  10. #10
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Unfortunately, I don't think the cheaters would take very long to figure this out, and start moving the keys around dynamically depending on some random number generator, so you would be constantly chasing your tail.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  11. #11
    Registered User
    Join Date
    Aug 2008
    Posts
    67
    Quote Originally Posted by switch-blade View Post
    well, in the game counterstrike1.6/source the main keys to startup your hacks ingame are those 3, and if you have that running, theres no way to do it.

    If i can't disable keys, Then can you guys help me out with the text part of it?

    After you double click the program, a box comes up saying You may now start your game.
    Many current undetected-VAC2 hacks for HL1 games, including Counter-Strike 1.6, allow the hack user to change the keybinds that enable the hack. Also, disabling these keys will step on legitimate user's toes. For instance, my F6 and F12 keys are both used to buy weapons at the start of the round. I'd be pretty upset if I ran your program and suddenly couldn't buy smoke grenades.

    Game hacks are complex and difficult to write: anti-hack software will be equally difficult. Disabling a few keys will be nothing more than an annoyance.
    Last edited by kpreston; 09-05-2008 at 08:40 PM.

  12. #12
    Registered User
    Join Date
    Sep 2008
    Posts
    11
    well if i could just know if their pressed, and they will be banned before they can fix anything with their hacks... thats all i want, they will be banned by ip. and steamid. i dont do that cal/cevo ........ where u just buy another id and give them another chance.

    does anyone have any experience in like tutoring me sort of? with this kind of stuff, so i can actually make it a program with c+


    also, i dont think anyone uses f12 to buy weapons, im sorry if you do, but it will be known to not use those keys for binding weapons or anything of the sort.

    then the box at the end to show you that you can now start the game.

  13. #13
    Registered User
    Join Date
    Sep 2008
    Posts
    11
    is anyone able to make this program?

  14. #14
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I betcha I can since I have made similar before. But I betcha it would be best if you do it as a kb driver since that is the only real way of having the final say over whether or not key strokes are processed.

    No one is going to write it for you, to answer your question bluntly.

  15. #15
    Registered User
    Join Date
    Sep 2008
    Posts
    11
    what if i paid?

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple window program
    By baniakjr in forum C++ Programming
    Replies: 5
    Last Post: 03-11-2006, 03:46 PM
  2. Help with simple program
    By nik2007 in forum C++ Programming
    Replies: 4
    Last Post: 02-27-2006, 09:54 AM
  3. making a program leave a msg for background program when it closes
    By superflygizmo in forum Windows Programming
    Replies: 2
    Last Post: 02-06-2006, 07:44 PM
  4. Need help with a simple program...
    By Omer_D in forum C++ Programming
    Replies: 3
    Last Post: 07-09-2004, 04:13 PM
  5. Replies: 2
    Last Post: 01-13-2003, 01:28 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21