| View previous topic :: View next topic |
| Author |
Message |
xike20 How do I cheat?
Reputation: 0
Joined: 13 Apr 2008 Posts: 3
|
Posted: Sat Jun 21, 2008 3:43 am Post subject: how to simulate keystrokes? |
|
|
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 |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
|
| Back to top |
|
 |
xike20 How do I cheat?
Reputation: 0
Joined: 13 Apr 2008 Posts: 3
|
Posted: Sat Jun 21, 2008 9:13 am Post subject: |
|
|
| Slugsnack wrote: | SendInput / PostMessage / SendMessage.
That link might help. |
Thanks~
But i need to do it in Cheat Engine......
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Sat Jun 21, 2008 11:33 am Post subject: |
|
|
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 |
|
 |
|