| View previous topic :: View next topic |
| Author |
Message |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Sun Sep 07, 2008 1:35 pm Post subject: |
|
|
still not working... i wonder why?!?
edit : this response is for the WM_CHAR i didn't see the other responses .. i'll reply later
btw i remember i did it one time and it went perfect !!!
i don'w what happened to this sh!T :L
_________________
Stylo |
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Sun Sep 07, 2008 1:43 pm Post subject: |
|
|
| What child window?
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Sun Sep 07, 2008 1:44 pm Post subject: |
|
|
unless you haven't noticed... most of notepad is taken up by a child window.
_________________
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Mon Sep 08, 2008 7:47 am Post subject: |
|
|
Use Spy++ or what I use is WinSpector.. Btw no offense but you should test shit or at least make sure you know what you're talking about before you post. You're making an awful lot of very retarded posts lately lol. Just trying to save you some embarrassment
|
|
| Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Mon Sep 08, 2008 9:07 am Post subject: |
|
|
i dont really care what ppl think about my questions.. if they can help me and want to help me it'd be grate, all i want is answer to my questions cuz i'm not that pro / good whatever u call it at programming i'm learning it so i really dont need to be embarrassed to ask for help
btw what other posts did u see of mine that are so retarded lately? i dont remember posting here that much posts lately, i'm barely at home :\
_________________
Stylo |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Sep 08, 2008 9:42 am Post subject: |
|
|
Get the handle to the child window (hint: the edit box you're actually writing in)and send it a WM_CHAR message.
Take a look at notepad in Spy++ and it should clear it up a bit.
|
|
| Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Mon Sep 08, 2008 11:59 am Post subject: |
|
|
yea i already succeeded doing it on notepad.. the thing is if i try it like this
| Code: |
PostMessage(FindWindowEx(GetActiveWindow(),0,_T("Edit"),0),WM_CHAR(or WM_KEYDOWN),(WPARAM)'x',1);
|
it doesn't work at all
_________________
Stylo |
|
| Back to top |
|
 |
jackyyll Expert Cheater
Reputation: 0
Joined: 28 Jan 2008 Posts: 143 Location: here
|
Posted: Mon Sep 08, 2008 12:44 pm Post subject: |
|
|
| Maybe the active window doesn't have an Edit class?
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Mon Sep 08, 2008 12:59 pm Post subject: |
|
|
| 1qaz wrote: | still not sending..
is the wParam and lParam are correct?
i'm always confuse with these parameters |
read about messages notifications.
|
|
| Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Mon Sep 08, 2008 1:03 pm Post subject: |
|
|
probably... i just wanted to send the key to the window no matter if it got edit control or not
and Rot1 i read about the notifications i think i got it now,
thx to everybody who helped really appreciate your help :]
_________________
Stylo |
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Mon Sep 08, 2008 4:40 pm Post subject: |
|
|
rofl, whoops. Try GetForegroundWindow instead of GetActiveWindow.
If you want to send a message to the active window regardless of it's child windows, I don't think there's a way to do that. You could send a message to the active window + all the child windows, but I don't know if you can get the active child window.
_________________
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Tue Sep 09, 2008 4:00 am Post subject: |
|
|
| 1qaz wrote: | i dont really care what ppl think about my questions.. if they can help me and want to help me it'd be grate, all i want is answer to my questions cuz i'm not that pro / good whatever u call it at programming i'm learning it so i really dont need to be embarrassed to ask for help
btw what other posts did u see of mine that are so retarded lately? i dont remember posting here that much posts lately, i'm barely at home :\ |
Sorry mate, was not referring to you, was talking about dnsi0 Asking questions is fine as long as you're not going to ask something very obvious that has been answered millions of times.
|
|
| Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
|
| Back to top |
|
 |
|