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++] what's wrong with the code ?!?!
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Sun Sep 07, 2008 1:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Sun Sep 07, 2008 1:43 pm    Post subject: Reply with quote

What child window?
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sun Sep 07, 2008 1:44 pm    Post subject: Reply with quote

unless you haven't noticed... most of notepad is taken up by a child window.
_________________
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Mon Sep 08, 2008 7:47 am    Post subject: Reply with quote

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 Shocked
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Mon Sep 08, 2008 9:07 am    Post subject: Reply with quote

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
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Sep 08, 2008 9:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Mon Sep 08, 2008 11:59 am    Post subject: Reply with quote

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
View user's profile Send private message
jackyyll
Expert Cheater
Reputation: 0

Joined: 28 Jan 2008
Posts: 143
Location: here

PostPosted: Mon Sep 08, 2008 12:44 pm    Post subject: Reply with quote

Maybe the active window doesn't have an Edit class?
Back to top
View user's profile Send private message AIM Address MSN Messenger
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Mon Sep 08, 2008 12:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Mon Sep 08, 2008 1:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Mon Sep 08, 2008 4:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Sep 09, 2008 4:00 am    Post subject: Reply with quote

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 Wink 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
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Tue Sep 09, 2008 4:22 am    Post subject: Reply with quote

Slugsnack wrote:
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 Wink Asking questions is fine as long as you're not going to ask something very obvious that has been answered millions of times.

oh ... that's ok i guess it's my bad, u just didn't mentioned name so i thoutght it was referring to me

_________________
Stylo
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
Goto page Previous  1, 2
Page 2 of 2

 
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