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 


DirectX keyboard scan codes?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> LUA Tutorials
View previous topic :: View next topic  
Author Message
zappo
How do I cheat?
Reputation: 0

Joined: 20 Feb 2015
Posts: 3

PostPosted: Thu Feb 26, 2015 7:37 am    Post subject: DirectX keyboard scan codes? Reply with quote

I have a script that is testing for the DELETE key using IsKeyPressed(VK_DELETE) but it's not picking up the key state in a directX game. I suspect that might be because the scan codes for normal key presses are different to those sent to directx. I am wondering if the function IsKeyPressed() is able to distinguish between the 2 types of scan codes. The DELETE key in DirectX is 0xD3 (211) but the VK_DELETE define is 0x2E (46). I've tried using the function IsKeyPressed(211) but that doesn't work which makes me think that the underlying code for checking scan codes does not allow of directx.

Can someone confirm or perhaps tell me how I can do the test correctly?

PS:
I'm using VoiceAttack to send the key presses to the game via speech commands. It gives the option to send these keystrokes as *normal* scan codes or *directX* scan codes - I need to use directx for the game to see the keystroke so I imagine cheatengine also needs to differentiate.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> LUA Tutorials 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 cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites