C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 09-05-2008, 12:51 AM   #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.
switch-blade is offline   Reply With Quote
Old 09-05-2008, 01:10 AM   #2
Rampaging 35 Stone Welsh
 
abachler's Avatar
 
Join Date: Apr 2007
Posts: 2,924
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.
__________________
He is free, you say. Ah! That is his misfortune… These men… [have] the most terrible, the most imperious of masters, that is, need. … They must therefore find someone to hire them, or die of hunger. Is that to be free? - Simon Linguet
abachler is offline   Reply With Quote
Old 09-05-2008, 02:03 AM   #3
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
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.
matsp is offline   Reply With Quote
Old 09-05-2008, 10:03 AM   #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 10:06 AM.
switch-blade is offline   Reply With Quote
Old 09-05-2008, 11:22 AM   #5
Banned
 
master5001's Avatar
 
Join Date: Aug 2001
Location: Visalia, CA, USA
Posts: 3,699
...

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!
master5001 is offline   Reply With Quote
Old 09-05-2008, 11:59 AM   #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.
switch-blade is offline   Reply With Quote
Old 09-05-2008, 12:13 PM   #7
Banned
 
master5001's Avatar
 
Join Date: Aug 2001
Location: Visalia, CA, USA
Posts: 3,699
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...
master5001 is offline   Reply With Quote
Old 09-05-2008, 02:57 PM   #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.
switch-blade is offline   Reply With Quote
Old 09-05-2008, 03:07 PM   #9
Frequently Quite Prolix
 
dwks's Avatar
 
Join Date: Apr 2005
Location: Canada
Posts: 7,629
Quote:
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, etc.

New project: nort
dwks is offline   Reply With Quote
Old 09-05-2008, 03:15 PM   #10
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
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.
matsp is offline   Reply With Quote
Old 09-05-2008, 07:37 PM   #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 07:40 PM.
kpreston is offline   Reply With Quote
Old 09-07-2008, 05:06 PM   #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.
switch-blade is offline   Reply With Quote
Old 09-08-2008, 04:09 PM   #13
Registered User
 
Join Date: Sep 2008
Posts: 11
is anyone able to make this program?
switch-blade is offline   Reply With Quote
Old 09-08-2008, 04:16 PM   #14
Banned
 
master5001's Avatar
 
Join Date: Aug 2001
Location: Visalia, CA, USA
Posts: 3,699
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.
master5001 is offline   Reply With Quote
Old 09-08-2008, 11:58 PM   #15
Registered User
 
Join Date: Sep 2008
Posts: 11
what if i paid?
switch-blade is offline   Reply With Quote
Reply

Tags
disabling, game, gaming, program, simple

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple window program baniakjr C++ Programming 5 03-11-2006 03:46 PM
Help with simple program nik2007 C++ Programming 4 02-27-2006 09:54 AM
making a program leave a msg for background program when it closes superflygizmo Windows Programming 2 02-06-2006 07:44 PM
Need help with a simple program... Omer_D C++ Programming 3 07-09-2004 03:13 PM
making programs communicate && making a (simple) compiler arctidog C Programming 2 01-13-2003 01:28 PM


All times are GMT -6. The time now is 11:18 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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