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 


How do you send keys to a window?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Tue Nov 20, 2007 7:17 pm    Post subject: How do you send keys to a window? Reply with quote

Can some1 give the script in delphi?
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Tue Nov 20, 2007 7:20 pm    Post subject: Reply with quote

FindWindow > PostMessage
_________________
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Tue Nov 20, 2007 7:25 pm    Post subject: Reply with quote

Dun Work T.T
i am using:
wnd := FindWindow('Form1', nil);
//wnd := FindWindowEx(wnd, 0, 'hi', nil);
//PostMessage(wnd, WM_KEYDOWN, 0xLparamhere, 0xWparamhere);
asd:=2143214321;
PostMessage(wnd, WM_CHAR, asd, 0);
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Tue Nov 20, 2007 7:31 pm    Post subject: Reply with quote

http://msdn2.microsoft.com/en-us/library/ms646276.aspx
I think you should realize what you did wrong. Also you mixed up params for PostMessage.

_________________
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue Nov 20, 2007 7:46 pm    Post subject: Reply with quote

Translate / dispatch message.

There is a post on it somewhere.

Search!

_________________
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Tue Nov 20, 2007 7:49 pm    Post subject: Reply with quote

blankrider wrote:
Translate / dispatch message.

There is a post on it somewhere.

Search!

No... that method is not as good.

_________________
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Nov 20, 2007 8:01 pm    Post subject: Reply with quote

You can also use SendInput(), but it isn't window based.
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Tue Nov 20, 2007 8:06 pm    Post subject: Reply with quote

Can you fix it for me?
I am new to delphi 7...
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue Nov 20, 2007 8:30 pm    Post subject: Reply with quote

It's very good sponge Rolling Eyes

It's basically communicating on the lowest level.
Fill a MSG structure with your keystroke info then send it. It's core windows communication.

_________________
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Nov 20, 2007 8:32 pm    Post subject: Reply with quote

blankrider wrote:
It's very good sponge Rolling Eyes

It's basically communicating on the lowest level.
Fill a MSG structure with your keystroke info then send it. It's core windows communication.


Ahaha, you do know what kernel mode is, and what the HAL's are don't you? Lowest level my ass... Rolling Eyes
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue Nov 20, 2007 8:59 pm    Post subject: Reply with quote

Lowest user mode interaction. I was assuming he isn't going to write a driver for sending simple keys...that would just be silly.
_________________
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Tue Nov 20, 2007 9:01 pm    Post subject: Reply with quote

No it isn't. Eventually it will result in an error code 5 (No access error.) in MS.
i haven't tested it in other processes.

maybe it has something to do w/ ms's bloated wndproc but i have no idea.

_________________
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue Nov 20, 2007 9:05 pm    Post subject: Reply with quote

maybe if you're retarded Rolling Eyes

and besides he never said this is for MS. MS sucks, get over it....

_________________
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Tue Nov 20, 2007 9:06 pm    Post subject: Reply with quote

Rolling Eyes If you didn't notice this was moved from the MS section. The safest thing to say is that he is doing this for MS. Besides why call 2 api when you can call one.
_________________
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue Nov 20, 2007 9:13 pm    Post subject: Reply with quote

Because you should always use a lower level approach to anything.

Besides, SendInput is blocked in maplestory. I don't think translate/dispatch message is. And i'm pretty sure SendInput is a wrapper for t/d msgs ...

And call 2 api because it's faster and more efficient.

_________________
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 1, 2  Next
Page 1 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