| View previous topic :: View next topic |
| Author |
Message |
algrn912005 Expert Cheater
Reputation: 0
Joined: 12 Nov 2005 Posts: 124
|
Posted: Thu Aug 06, 2009 2:09 pm Post subject: [C#]Game blocking global hotkeys |
|
|
I've made a trainer for crimsonland the latest one. I've made hotkeys and things seem fine. When I go into the game though, I press the hotkey but it does not work. I test my hotkeys another way. I open up another window say firefox so that my trainer is not in focus and I press the corresponding hotkey. I hear a beep confirming that it works.
So I confirmed that my hotkeys work when my trainer is not in focus but it seems like the game is blocking my hotkeys somehow. When I activate the hack manually, it works in game but the hotkeys don't. Can anyone enlighten me on why it is not working?
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Thu Aug 06, 2009 3:07 pm Post subject: |
|
|
| how are you doing your hotkeys ? registering them with your wndproc ?
|
|
| Back to top |
|
 |
algrn912005 Expert Cheater
Reputation: 0
Joined: 12 Nov 2005 Posts: 124
|
Posted: Thu Aug 06, 2009 4:21 pm Post subject: |
|
|
| yes, I'm registering them with the registerhotkey api and using the wndproc function to catch them
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25979 Location: The netherlands
|
Posted: Thu Aug 06, 2009 4:26 pm Post subject: |
|
|
and now you know why ce abandoned using them (if you look at the ce code you can still see it's using the registerhotkey framework leftover) I think it's some feature in directinput or some other keyboard handler that disables hotkeys. (example: ctrl+r would usually pop up ICQ, but some games use it (strafe and reload), and that would piss people off)
Try polling in a thread with get(async)keystate (with a high priority and low idle time, but not too low)
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
algrn912005 Expert Cheater
Reputation: 0
Joined: 12 Nov 2005 Posts: 124
|
Posted: Thu Aug 06, 2009 5:31 pm Post subject: |
|
|
I see. Thanks for the help it's working fine now
|
|
| Back to top |
|
 |
Cloud267 How do I cheat?
Reputation: 0
Joined: 27 Jul 2009 Posts: 0
|
Posted: Mon Aug 17, 2009 2:26 pm Post subject: |
|
|
| hey could u pm me the trainer link?
|
|
| Back to top |
|
 |
algrn912005 Expert Cheater
Reputation: 0
Joined: 12 Nov 2005 Posts: 124
|
Posted: Sun Aug 23, 2009 11:46 am Post subject: |
|
|
| I posted my trainer in the trainer section. You should be able to see it
|
|
| Back to top |
|
 |
|