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 


[Help] PostMessage with C#

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

Joined: 26 Dec 2007
Posts: 448

PostPosted: Wed Apr 22, 2009 3:26 am    Post subject: [Help] PostMessage with C# Reply with quote

Can anyone give me an example of importing postmessage function, and then executing it (preferably to maple).

I've attempted to use it by calling a dll import for user32 but whenever I try to send it the program just goes really slow and nothing happens...

This is the import im using:
Code:
  [DllImport("user32.dll")]
        public static extern IntPtr PostMessage(IntPtr hWnd, int msg, int wParam, int lParam);


And this is the PostMessage function im using:
Code:
string WndName = "MapleStory";
IntPtr hWnd = FindWindow(null, WndName);
for (int i = 0; i < Settings.Default.StoreName1.Length; i++)
        PostMessage(hWnd, WM_CHAR, Settings.Default.StoreName1[i], 0);

_________________
Everyday when belie wakes up in the morning, the first thing that comes to his child-like mind is 'How can I warn assaulter007 today?'

beli </3
S3NSA <3

Better now? Smile
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Wed Apr 22, 2009 3:50 am    Post subject: Reply with quote

never heard about gameguard hooking all those functions?!
this game has protection from using those things.
but anyway if you'd like to use it you need to bypass the hook
there are a lot of posts of the method written in C++
you can create a dll or download PMX.dll that is published here long ago
and import the new bypassed functions to your C# program
Back to top
View user's profile Send private message
1929394839292057839194958
Grandmaster Cheater Supreme
Reputation: 130

Joined: 22 Dec 2006
Posts: 1509

PostPosted: Wed Apr 22, 2009 5:24 am    Post subject: Reply with quote

Contact me on MSN: [email protected] and I'll show you how I'm using PostMessageX Smile
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