Page 1 of 1

Question : Maple Story Bot API!

Posted: Wed Jun 09, 2010 6:03 pm
by NoobHacker
Raven told me that the bot uses PostMessage api via XMP.dll,
but i googled and find alot of thing such as PostMessageX,PostMessageA and alot of things,whats difference of those?
And i googled,some of them uses user32.dll
so whats correct API declare for maple story bot?

edit:noticed FindWindow not in user32,is findwindowA.
i uses VB(nice intellence)...slow coding in C#...noob in C++..
I uses Long istead of hwnd(google)
so those are the APIs..

Code: Select all

Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
as you can see it returns long and not hwnd

Code: Select all

Private Declare Function PostMessage Lib "user32.dll" Alias "PostMessageA" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
Lib "user32.dll" or "XMP.dll"?
i googled itandthey have user32.dll...but when debugging it says function not found(PostMessageA)
after i change to XMP.dll(i copied XMP .dll to local debug directory) ,after that nothing happened...no errors,nothing happened..

im making a pyramid pq most suitable for me..iMax macro bluescreen for me ==
.i lazy uses multithread so i spam timers..

Code: Select all

Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function PostMessage Lib "user32.dll" Alias "PostMessageA" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
dim hwnd = FindWindow(vbnullstring,"MapleStory")
Dim VK_RETURN as integer = 0x0D 
Private sub timer1_tick(byval sender as system.object,byval e as system.eventargs)  handles timer1.tick
PostMessage(hwnd,VK_RETURN,0,0)
end sub
sorry for bad english,thanks.

Re: Question : Maple Story Bot API!

Posted: Wed Jun 09, 2010 6:46 pm
by Nerrazzuri
Too bad I'm not good in VB, well, AFAIK, PostMessage will works for normal keystroke, eg. "A", "B", "C", but doesn't work for arrow keys.

Re: Question : Maple Story Bot API!

Posted: Wed Jun 09, 2010 7:36 pm
by NoobHacker
nerrazzuri wrote:Too bad I'm not good in VB, well, AFAIK, PostMessage will works for normal keystroke, eg. "A", "B", "C", but doesn't work for arrow keys.
thanks for reply,owh thats why alot of bots arrow key must focused

Re: Question : Maple Story Bot API!

Posted: Wed Jun 09, 2010 7:49 pm
by Nerrazzuri
yes, I've tried to use PostMessage() for the NRZBot but it doesn't work.
I use SendInput() instead.