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 


Delphi Maplestory text spammer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Kalookakoo
Expert Cheater
Reputation: 0

Joined: 03 Mar 2008
Posts: 117

PostPosted: Tue Jul 08, 2008 8:41 am    Post subject: Delphi Maplestory text spammer Reply with quote

I already have key sending to mS down, but whenever I try to do it the same way but with a string of keys to spam as chat (along with enter of course), it fails. Can anyone tell me what I'm doing wrong? Using pmx.dll.



Code:
begin
if Checkbox3.Checked=True then
begin
h:=FindWindowA(nil,'MapleStory');
a:=MapVirtualKey(Edit1.text,0);
a:= a shl 16;
if h<>0 then
 begin
hhPostMessageA(h,WM_KEYDOWN,edit1.text,a);
Application.ProcessMessages;
 end;



Might be other errors since I pulled this out of nowhere for an example, but I hope you get the idea. I used to get the keys to end up in chat before by accident while trying to just make potting keys, but I fixed it. Now I dont know how to go back to get it to spam when I DO want it to.
Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Tue Jul 08, 2008 9:16 am    Post subject: Reply with quote

it is probably because you cant map the virtual key of a string of characters:
a:=MapVirtualKey(Edit1.text,0);


scan through your string, using characters individually

_________________
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Wed Jul 09, 2008 5:10 am    Post subject: Reply with quote

Like Snootae said.
Example:
Code:
procedure SendText(AText: String);
var
  i: integer;
  h: HWND;
begin
h := FindWindow('MapleStoryClass', nil);
for i:=1 To Length(AText) do
    PostMessage(h, WM_Char, ord(AText[i]), 0);
end;
Back to top
View user's profile Send private message
rapion124
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Mar 2007
Posts: 1095

PostPosted: Wed Jul 09, 2008 5:22 am    Post subject: Reply with quote

MapVirtualKey only accepts 1 character as the first parameter. You need to break up your string into individual characters and then send them.
Back to top
View user's profile Send private message
Mussy69
Grandmaster Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 842
Location: Sydney

PostPosted: Wed Jul 09, 2008 11:12 am    Post subject: Reply with quote

Or you could packet edit Cool
_________________
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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