| View previous topic :: View next topic |
| Author |
Message |
assaulter007 Master Cheater
Reputation: 0
Joined: 26 Dec 2007 Posts: 448
|
Posted: Wed Apr 22, 2009 3:26 am Post subject: [Help] PostMessage with C# |
|
|
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?  |
|
| Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Wed Apr 22, 2009 3:50 am Post subject: |
|
|
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 |
|
 |
1929394839292057839194958 Grandmaster Cheater Supreme
Reputation: 130
Joined: 22 Dec 2006 Posts: 1509
|
Posted: Wed Apr 22, 2009 5:24 am Post subject: |
|
|
Contact me on MSN: [email protected] and I'll show you how I'm using PostMessageX
|
|
| Back to top |
|
 |
|