Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C#]Game blocking global hotkeys

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
algrn912005
Expert Cheater
Reputation: 0

Joined: 12 Nov 2005
Posts: 124

PostPosted: Thu Aug 06, 2009 2:09 pm    Post subject: [C#]Game blocking global hotkeys Reply with quote

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
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Thu Aug 06, 2009 3:07 pm    Post subject: Reply with quote

how are you doing your hotkeys ? registering them with your wndproc ?
Back to top
View user's profile Send private message
algrn912005
Expert Cheater
Reputation: 0

Joined: 12 Nov 2005
Posts: 124

PostPosted: Thu Aug 06, 2009 4:21 pm    Post subject: Reply with quote

yes, I'm registering them with the registerhotkey api and using the wndproc function to catch them
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

Joined: 09 May 2003
Posts: 25980
Location: The netherlands

PostPosted: Thu Aug 06, 2009 4:26 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
algrn912005
Expert Cheater
Reputation: 0

Joined: 12 Nov 2005
Posts: 124

PostPosted: Thu Aug 06, 2009 5:31 pm    Post subject: Reply with quote

I see. Thanks for the help it's working fine now Very Happy
Back to top
View user's profile Send private message
Cloud267
How do I cheat?
Reputation: 0

Joined: 27 Jul 2009
Posts: 0

PostPosted: Mon Aug 17, 2009 2:26 pm    Post subject: Reply with quote

hey could u pm me the trainer link?
Back to top
View user's profile Send private message
algrn912005
Expert Cheater
Reputation: 0

Joined: 12 Nov 2005
Posts: 124

PostPosted: Sun Aug 23, 2009 11:46 am    Post subject: Reply with quote

I posted my trainer in the trainer section. You should be able to see it
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites