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 to simulate keystrokes?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
xike20
How do I cheat?
Reputation: 0

Joined: 13 Apr 2008
Posts: 3

PostPosted: Sat Jun 21, 2008 3:43 am    Post subject: how to simulate keystrokes? Reply with quote

i had found pointer of HP and MP.....
then, i wanna simulate keystrokes to fight monster, anyone can provide some thread?
thx~~~~
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sat Jun 21, 2008 4:28 am    Post subject: Reply with quote

SendInput / PostMessage / SendMessage.

http://www.autohotkey.com/docs/misc/SendMessageList.htm

That link might help.
Back to top
View user's profile Send private message
xike20
How do I cheat?
Reputation: 0

Joined: 13 Apr 2008
Posts: 3

PostPosted: Sat Jun 21, 2008 9:13 am    Post subject: Reply with quote

Slugsnack wrote:
SendInput / PostMessage / SendMessage.


That link might help.


Thanks~
But i need to do it in Cheat Engine...... Mad
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Sat Jun 21, 2008 11:33 am    Post subject: Reply with quote

Push the parameters in the opposite order and call the API. (Also make sure that you attach manually and not auto attach)

Here's an example how to find and close a window with an auto assembler script when the address 123456 is accessed:
Code:
Alloc(CloseWindow, 64)
Alloc(WindowName, 20)
Alloc(ClassName, 20)

WindowName:
db 'Untitled - Notepad',0 //Null terminator

ClassName:
db 'Notepad',0

123456:
Call CloseWindow
//Fill with nops if needed.

CloseWindow:
//Original memory here
push 0 //lParam
push 0 //wParam
push 10 //WM_CLOSE
push WindowName
push ClassName
call FindWindowA
push eax //Window Handle
call SendMessageA
ret
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
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