| View previous topic :: View next topic |
| Author |
Message |
Negima I post too much
Reputation: 6
Joined: 22 May 2007 Posts: 2221
|
Posted: Fri Aug 29, 2008 3:14 am Post subject: Injecting keystrokes into a process? |
|
|
| How exactly would I inject a keystroke into a process?
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Aug 29, 2008 3:24 am Post subject: |
|
|
You don't inject keys into a process.
You send them to a window.
This has been discussed in this forum 1000 times, the first page has like 5 topics about this.
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Aug 29, 2008 3:32 am Post subject: |
|
|
You can whisper your sweet messages to the window, or generate a keystroke with SendInput.
I think you might want to get the basics down first, you're all over the place. This would become much clearer if you actually spent the time to read and experiment a little.
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Fri Aug 29, 2008 9:23 am Post subject: |
|
|
Pma, SendMessage, Translate/DispatchMessage
And MSDN is your friend.
|
|
| Back to top |
|
 |
jackyyll Expert Cheater
Reputation: 0
Joined: 28 Jan 2008 Posts: 143 Location: here
|
Posted: Fri Aug 29, 2008 9:41 am Post subject: |
|
|
| dnsi0 wrote: | Pma, SendMessage, Translate/DispatchMessage
And MSDN is your friend.  |
Abbreviating PostMessageA isn't that helpful for someone who doesn't know what they're doing :p
|
|
| Back to top |
|
 |
Fuzz Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2006 Posts: 531
|
Posted: Fri Aug 29, 2008 10:58 am Post subject: |
|
|
InjectMessage();
By irwin.
_________________
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Fri Aug 29, 2008 11:01 am Post subject: |
|
|
FindWindowA then use that handle to PostMessageA.
If you making something for maple u will need hookhop which trampolines over the 5 byte jmp hook.
|
|
| Back to top |
|
 |
|