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++]PostMessage in DirectX?

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

Joined: 10 May 2009
Posts: 53

PostPosted: Mon Jun 08, 2009 12:52 am    Post subject: [C++]PostMessage in DirectX? Reply with quote

How would I use PostMessage or a similar function in a DirectX application? Google searches have not helped me the least bit.

When I used PostMessage it would only input "6" into the chat window (if it was clicked), but not use the power that is set on "6".

I also had the same problem with kb_event.
Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Mon Jun 08, 2009 1:12 am    Post subject: Reply with quote

directx uses directinput so google that a bit, i believe it uses a different way to handle the messages and whatnot from your inputs
_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Jun 08, 2009 3:00 am    Post subject: Reply with quote

Snootae wrote:
directx uses directinput so google that a bit, i believe it uses a different way to handle the messages and whatnot from your inputs


No, it doesn't.

you can use whatever kind of input you like. In fact, DirectInput is deprecated.

Most modern games or applications will probably be using the Win32 messages or handling raw input. Really, there is not much a purpose to DirectInput any more since raw input provides all the benefits with none of the downfalls (actually, I think all DirectInput did was set up and handle the raw input in a thread it spawns, this was before WM_INPUT was exposed though).
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Mon Jun 08, 2009 4:57 am    Post subject: Reply with quote

SendInput should work.
Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Mon Jun 08, 2009 5:02 am    Post subject: Reply with quote

keybd_event is a wrapper for sendinput, so probably wont help
_________________
Back to top
View user's profile Send private message
sloppy
Expert Cheater
Reputation: 0

Joined: 17 Aug 2008
Posts: 123

PostPosted: Mon Jun 08, 2009 6:00 am    Post subject: Reply with quote

If the game is using DirectInput, you can try hooking GetDeviceState / GetDeviceData and inject your input there.
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Mon Jun 08, 2009 9:24 pm    Post subject: Reply with quote

.NET has a input class that should work for DirectInput, I think. Don't know what it's called, though.
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