 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
haha01haha01 Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Sat Dec 29, 2007 1:59 am Post subject: [MapleStory] Seding keystrokes with messages |
|
|
| i want to build an auto chat for maplestory, but i dont know which message send the keystrokes of enter,down, and up. or is there a better way to do it without messages?
|
|
| Back to top |
|
 |
Eyalos Master Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 343
|
Posted: Sat Dec 29, 2007 2:28 am Post subject: |
|
|
if you want it to work minimized use sponge's HookHop
I dont really know what language ur programming so..
Just look for PostMessageA in google or something
BTW, if you dont want it minimized, depends on your programming lang,
You can try using KeyDown function, well if its C#?
Google it
|
|
| Back to top |
|
 |
Michel Expert Cheater
Reputation: 0
Joined: 16 May 2007 Posts: 214 Location: The Netherlands
|
Posted: Sat Dec 29, 2007 4:18 am Post subject: |
|
|
| Use Virtual Keys (google it)
|
|
| Back to top |
|
 |
haha01haha01 Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Sat Dec 29, 2007 9:19 am Post subject: |
|
|
| ye, i know what virtual keys are, but how do i use them? what is th api calling them?
|
|
| Back to top |
|
 |
Aviram Grandmaster Cheater
Reputation: 0
Joined: 30 Jun 2006 Posts: 633
|
Posted: Sun Dec 30, 2007 8:24 am Post subject: |
|
|
use sponge hookhop, LIke this if i remember right
and to set virtual keys here is it
0 = 0x30
message = textbox
hhPostMessageA(hWnd,message , 0, 0);
So if u put in the textbox 0 it finds that 0 = 0x30 then it clicks so now u need to write all buttons like this
0 = 0x30
1 = 0x31
I think i did it correctly..
|
|
| Back to top |
|
 |
haha01haha01 Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Fri Jan 04, 2008 1:59 pm Post subject: |
|
|
| aviram1994 wrote: | use sponge hookhop, LIke this if i remember right
and to set virtual keys here is it
0 = 0x30
message = textbox
hhPostMessageA(hWnd,message , 0, 0);
So if u put in the textbox 0 it finds that 0 = 0x30 then it clicks so now u need to write all buttons like this
0 = 0x30
1 = 0x31
I think i did it correctly.. |
oooo i got it thx ^^
but i think that if the textbox is "0" and i tell it to send the textbox text as the msg, it will send 0. to make it send 0x30 i need to config this var as a pointer. atleast thats how i will do it in asm... i have no clue how to make pointers in delphi.
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Jan 04, 2008 2:27 pm Post subject: |
|
|
| No, use normal PostMessage, you can make an auto chat without bypassing...
|
|
| Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Fri Jan 04, 2008 2:50 pm Post subject: |
|
|
PostMessage(Wnd, WM_KEYDOWN, $0D,0) <- Enter Key
PostMessage(Wnd, WM_KEYDOWN, $26,0) <- up key
PostMessage(Wnd, WM_KEYDOWN, $28,0) <- down key
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Jan 04, 2008 2:57 pm Post subject: |
|
|
ord(VK_Return)
ord(VK_Up)
ord(VK_Down)
If I was on my computer I would upload my source, I remember it was something like:
for i := 1 to Length(Edit1.Text) do
PostMessage(Wnd,WM_KEYDOWN,Edit1.Text[i],1) //1 = number of times to press the key, 0, 1, doesn't matter both works...
or maybe it was ord(edit...) I'll check that and edit my post in a second.
Edit: Sorry, I know whats the problem, I used KeyDown which used the virtual key, use WM_Char, works fine.
This program will send the text in edit1 to a notepad:
| Code: | uses ShellAPI;
...
...
procedure TForm1.Button1Click(Sender: TObject);
var i: Integer;
begin
ShellExecute(Handle,'open','notepad',nil,nil,SW_SHOWMAXIMIZED);
Sleep(1000);
for i := 0 to Length(Edit1.Text) do
PostMessage(FindWindowEx(FindWindow(nil,'ללא שם - פנקס רשימות'),0,nil,nil),WM_Char,Integer(PChar(Edit1.Text[i])),1);
end; |
You don't need the FindWindowEx for MapleStory, it will send it to the chat box even by using FindWindow.
Edit2: Finally, found it on the 12th page... its not the source o.o
http://forum.cheatengine.org/viewtopic.php?t=180001
|
|
| Back to top |
|
 |
haha01haha01 Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Sat Jan 12, 2008 1:14 pm Post subject: |
|
|
oh thx, but if it was me i would do it:
procedure TForm1.Button1Click(Sender: TObject);
var
h: string;
i: Integer;
begin
Sleep(1000);
for i := 0 to Length(Edit1.Text) do
FindWindow (MapleStoryClass,nil);
PostMessageX(h,WM_KEYDOWN,[have no clue what the folowing mean]Integer(PChar(Edit1.Text[i])),1);[untill here]
end;
end.
PS: why do u need findwindowex? and y doing postmessage(findwindow()) when u can just put hWnd in h and do postmessage(h)?
ur code has too many ((((())))) for me to understand it >.< thats y i dont like using programming language other then asm... but in this case i must do it like this cuz i dont know how to include dll in asm.
|
|
| Back to top |
|
 |
Michel Expert Cheater
Reputation: 0
Joined: 16 May 2007 Posts: 214 Location: The Netherlands
|
Posted: Sat Jan 12, 2008 1:59 pm Post subject: |
|
|
| You need Findwindow to define the window you want to send the keystroke to
|
|
| Back to top |
|
 |
iHack I post too much
Reputation: 0
Joined: 19 Apr 2006 Posts: 2105 Location: USA
|
Posted: Sat Jan 12, 2008 3:29 pm Post subject: |
|
|
| Symbol wrote: | ord(VK_Return)
ord(VK_Up)
ord(VK_Down)
If I was on my computer I would upload my source, I remember it was something like:
for i := 1 to Length(Edit1.Text) do
PostMessage(Wnd,WM_KEYDOWN,Edit1.Text[i],1) //1 = number of times to press the key, 0, 1, doesn't matter both works...
or maybe it was ord(edit...) I'll check that and edit my post in a second.
Edit: Sorry, I know whats the problem, I used KeyDown which used the virtual key, use WM_Char, works fine.
this alone wont work though will it? I didnt think it was that simple...I thought you needed to hook some things or keys wont send to MS
This program will send the text in edit1 to a notepad:
| Code: | uses ShellAPI;
...
...
procedure TForm1.Button1Click(Sender: TObject);
var i: Integer;
begin
ShellExecute(Handle,'open','notepad',nil,nil,SW_SHOWMAXIMIZED);
Sleep(1000);
for i := 0 to Length(Edit1.Text) do
PostMessage(FindWindowEx(FindWindow(nil,'ללא שם - פנקס רשימות'),0,nil,nil),WM_Char,Integer(PChar(Edit1.Text[i])),1);
end; |
You don't need the FindWindowEx for MapleStory, it will send it to the chat box even by using FindWindow.
Edit2: Finally, found it on the 12th page... its not the source o.o
http://forum.cheatengine.org/viewtopic.php?t=180001 |
_________________
|
|
| Back to top |
|
 |
haha01haha01 Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Sun Jan 13, 2008 7:33 am Post subject: |
|
|
| Micheltjuh wrote: | | You need Findwindow to define the window you want to send the keystroke to |
i know why i need findwindow, what i dont know is why i need findwindowex.
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Sun Jan 13, 2008 10:03 am Post subject: |
|
|
| if gg (those son of a bitches) wouldn't hook sendinput in ring3, then it would be alot easier, try mouse_event/keybd_Event (they are hooked only at ring0)
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sun Jan 13, 2008 4:16 pm Post subject: |
|
|
| Kaspersky wrote: | | if gg (those son of a bitches) wouldn't hook sendinput in ring3, then it would be alot easier, try mouse_event/keybd_Event (they are hooked only at ring0) |
1) I am pretty sure you are getting your rings mixed up there.
2) mouse_event/keybd_event both both call SendInput.
|
|
| Back to top |
|
 |
|
|
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
|
|