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 


Can anyone tell me why?

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

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

PostPosted: Wed Jan 23, 2008 11:21 pm    Post subject: Can anyone tell me why? Reply with quote

can anyone tell me why this wont send to maple, even into the text box?

Code:
for i := 1 to Length(TextLine1.text) do
hhPostmessageA(FindWindowex(FindWindow(nil,'MapleStory'),0,nil,nil),WM_Char,integer(pChar(TextLine1.text[i])),0);

_________________
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Thu Jan 24, 2008 6:17 am    Post subject: Re: Can anyone tell me why? Reply with quote

AdamG62 wrote:
can anyone tell me why this wont send to maple, even into the text box?

Code:
for i := 1 to Length(TextLine1.text) do
hhPostmessageA(FindWindowex(FindWindow(nil,'MapleStory'),0,nil,nil),WM_Char,integer(pChar(TextLine1.text[i])),0);

becuase Length() does not exist.
Use len() instead.

_________________
Intel over amd yes.
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: Thu Jan 24, 2008 7:13 am    Post subject: Reply with quote

Length does exist....
Not sure if thats the problem, but you don't need FindWindowEx, only FindWindow.
try Ord(TextLine1.Text[i]) instead of Integer(PChar(TextLine1.Text[i]))
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Thu Jan 24, 2008 7:15 am    Post subject: Reply with quote

Symbol wrote:
Length does exist....
Not sure if thats the problem, but you don't need FindWindowEx, only FindWindow.
try Ord(TextLine1.Text[i]) instead of Integer(PChar(TextLine1.Text[i]))

Oh sorry. It looked like vb when i first looked at it. Crying or Very sad

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Snootae
Grandmaster Cheater
Reputation: 0

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

PostPosted: Thu Jan 24, 2008 7:27 am    Post subject: Reply with quote

thanks, will try

Edit: Ord didn't work, im doing it like this now, works on notepad so it's better than the old
i think it was the scancode

Code:
for i := 1 to Length(TextLine1.text) do
begin
  TempChar := integer(TextLine1.Text[i]);
  CharT := Cardinal(TextLine1.Text[i]);
  lParam := MakeLong(0, MapVirtualKey(CharT, 0));
  h := FindWindow(nil,'MapleStory');
  hhPostmessageA(h ,WM_Char ,TempChar, lParam);
  sleep(5);
end;


yet this doesn't work in chat box either

_________________
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Thu Jan 24, 2008 5:35 pm    Post subject: Reply with quote

You need to bypass it?
_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu Jan 24, 2008 6:06 pm    Post subject: Reply with quote

samuri25404 wrote:
You need to bypass it?


pretty sure hes using hookHop.dll... (due to the fact of "hhPostMessageA")

_________________
Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

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

PostPosted: Thu Jan 24, 2008 6:53 pm    Post subject: Reply with quote

yes i am, but no luck
_________________
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
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