| View previous topic :: View next topic |
| Author |
Message |
wolfdm312 Advanced Cheater
Reputation: 0
Joined: 10 May 2009 Posts: 53
|
Posted: Mon Jun 08, 2009 12:52 am Post subject: [C++]PostMessage in DirectX? |
|
|
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 |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Mon Jun 08, 2009 1:12 am Post subject: |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Jun 08, 2009 3:00 am Post subject: |
|
|
| 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 |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Mon Jun 08, 2009 4:57 am Post subject: |
|
|
| SendInput should work. |
|
| Back to top |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Mon Jun 08, 2009 5:02 am Post subject: |
|
|
keybd_event is a wrapper for sendinput, so probably wont help _________________
|
|
| Back to top |
|
 |
sloppy Expert Cheater
Reputation: 0
Joined: 17 Aug 2008 Posts: 123
|
Posted: Mon Jun 08, 2009 6:00 am Post subject: |
|
|
| If the game is using DirectInput, you can try hooking GetDeviceState / GetDeviceData and inject your input there. |
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Mon Jun 08, 2009 9:24 pm Post subject: |
|
|
| .NET has a input class that should work for DirectInput, I think. Don't know what it's called, though. |
|
| Back to top |
|
 |
|