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 


[MapleStory] Seding keystrokes with messages
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
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Sat Dec 29, 2007 1:59 am    Post subject: [MapleStory] Seding keystrokes with messages Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Eyalos
Master Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 343

PostPosted: Sat Dec 29, 2007 2:28 am    Post subject: Reply with quote

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 Very Happy

BTW, if you dont want it minimized, depends on your programming lang,
You can try using KeyDown function, well if its C#?

Google it Wink
Back to top
View user's profile Send private message MSN Messenger
Michel
Expert Cheater
Reputation: 0

Joined: 16 May 2007
Posts: 214
Location: The Netherlands

PostPosted: Sat Dec 29, 2007 4:18 am    Post subject: Reply with quote

Use Virtual Keys (google it)
Back to top
View user's profile Send private message
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Sat Dec 29, 2007 9:19 am    Post subject: Reply with quote

ye, i know what virtual keys are, but how do i use them? what is th api calling them?
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Aviram
Grandmaster Cheater
Reputation: 0

Joined: 30 Jun 2006
Posts: 633

PostPosted: Sun Dec 30, 2007 8:24 am    Post subject: Reply with quote

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

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Fri Jan 04, 2008 1:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Symbol
I'm a spammer
Reputation: 0

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

PostPosted: Fri Jan 04, 2008 2:27 pm    Post subject: Reply with quote

No, use normal PostMessage, you can make an auto chat without bypassing...
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Fri Jan 04, 2008 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
Symbol
I'm a spammer
Reputation: 0

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

PostPosted: Fri Jan 04, 2008 2:57 pm    Post subject: Reply with quote

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

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Sat Jan 12, 2008 1:14 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Michel
Expert Cheater
Reputation: 0

Joined: 16 May 2007
Posts: 214
Location: The Netherlands

PostPosted: Sat Jan 12, 2008 1:59 pm    Post subject: Reply with quote

You need Findwindow to define the window you want to send the keystroke to
Back to top
View user's profile Send private message
iHack
I post too much
Reputation: 0

Joined: 19 Apr 2006
Posts: 2105
Location: USA

PostPosted: Sat Jan 12, 2008 3:29 pm    Post subject: Reply with quote

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

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Sun Jan 13, 2008 7:33 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sun Jan 13, 2008 10:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sun Jan 13, 2008 4:16 pm    Post subject: Reply with quote

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
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