| View previous topic :: View next topic |
| Author |
Message |
EvilHottness Advanced Cheater
Reputation: 0
Joined: 29 Apr 2008 Posts: 64 Location: Co
|
Posted: Thu Aug 21, 2008 10:15 pm Post subject: [Help] PMX.DLL Visual basic |
|
|
Alright so i got the a PMX.dll wrote into visual basic but everytime i execute it just keeps pressing R in maple bringing up the buddy list when i specifically put VK_F2
| Code: |
Private Declare Function PostMessageX Lib "c:\PMX.dll" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( _
ByVal lpClassName As String, _
ByVal lpWindowName As String _
) As Long
Private Const WM_KEYDOWN = &H100
Private Const VK_F2 = &H71
Private Sub Command1_Click()
Dim hWndCMD As Long
hWndCMD = FindWindow("MapleStoryClass", "MapleStory")
If hWndCMD = 0 Then
MsgBox "Maple Not Found!", vbCritical, "MapleStory"
Else
Call PostMessageX(hWndCMD, WM_KEYDOWN, VK_F2, 0&)
End If
End Sub
|
_________________
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Thu Aug 21, 2008 10:20 pm Post subject: |
|
|
i dont it works by c:\PMX.dll it works by finding dlls where u register em.. using regsvr32 or something like that so it has to be in c:\windows\system32
just gotta be Lib "PMX.dll"
_________________
|
|
| Back to top |
|
 |
EvilHottness Advanced Cheater
Reputation: 0
Joined: 29 Apr 2008 Posts: 64 Location: Co
|
Posted: Thu Aug 21, 2008 10:23 pm Post subject: |
|
|
I dont understand you what do you mean? What im having problems with is that it only presses the key R even when i declare the key in the code?
_________________
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Thu Aug 21, 2008 10:28 pm Post subject: |
|
|
Const VK_KEYR = 82 'KEY R
since the wm_keydown is 0x100 which is 256.. not even close to key R there is no problems pretty much i can think of!
_________________
|
|
| Back to top |
|
 |
EvilHottness Advanced Cheater
Reputation: 0
Joined: 29 Apr 2008 Posts: 64 Location: Co
|
Posted: Thu Aug 21, 2008 11:01 pm Post subject: |
|
|
Well all i keep getting is R pressed when i specify other keys anyone else help?
_________________
|
|
| Back to top |
|
 |
Overload Master Cheater
Reputation: 0
Joined: 08 Feb 2008 Posts: 293
|
Posted: Fri Aug 22, 2008 12:02 am Post subject: |
|
|
trying using something else other than VK_F2 and see if the problem still occurs.
And, i don't know anything about VB at all, but i think this line is wrong:
| Code: |
Private Declare Function PostMessageX Lib "c:\PMX.dll" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Long) As Long |
this is how i would do it (with no VB knowledge):
| Code: |
Private Declare Function PostMessageX Lib "PMX.dll" (ByVal hWnd As HWND, ByVal wMsg As UINT, ByVal wParam As Long, lParam As Long) As Long |
Not sure if that would really make a difference, or even if that would work. I've never had an interest in VB and never bother to look at vB code...
_________________
Blog
| Quote: | Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that |
|
|
| Back to top |
|
 |
EvilHottness Advanced Cheater
Reputation: 0
Joined: 29 Apr 2008 Posts: 64 Location: Co
|
Posted: Fri Aug 22, 2008 12:09 am Post subject: |
|
|
Yea i tryed every other key even other VK's only thing that works is VK_Return and VbKeyReturn same thing any ideas?
_________________
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Fri Aug 22, 2008 9:06 am Post subject: |
|
|
| YOu need to release the key too. WIth keyup
|
|
| Back to top |
|
 |
Zand Master Cheater
Reputation: 0
Joined: 21 Jul 2006 Posts: 424
|
Posted: Fri Aug 22, 2008 9:23 am Post subject: |
|
|
| dnsi0 wrote: | | YOu need to release the key too. WIth keyup |
No he doesn't. At least, I don't think it makes a difference.
|
|
| Back to top |
|
 |
EvilHottness Advanced Cheater
Reputation: 0
Joined: 29 Apr 2008 Posts: 64 Location: Co
|
Posted: Fri Aug 22, 2008 11:10 am Post subject: |
|
|
Yea KEYUP doesn't need to be activated, but i dk can anyone try out my code because when it's in design mode and i run it it just keeps pressing R in maple when it's compiled just keeps pressing E? no idea i didn't have this problem with flyff when i made a bot
_________________
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Aug 22, 2008 11:45 am Post subject: |
|
|
| dnsi0 wrote: | | YOu need to release the key too. WIth keyup |
No, he doesn't, imagine you hold the key for 5 seconds, it should attack about 5 times, but you didn't send Key Up message, did you? and it still attacked.
Besides, sending key down message once doesn't mean it'll simulate long key press, it only simulates one key press.
|
|
| Back to top |
|
 |
EvilHottness Advanced Cheater
Reputation: 0
Joined: 29 Apr 2008 Posts: 64 Location: Co
|
Posted: Fri Aug 22, 2008 12:10 pm Post subject: |
|
|
[Update]
Well this is wierd i think it's just maple being retarded these are the DLL's i tryed
1.PMX.DLL - just presses R in game
2.HookHop.dll - crashes
3.Bypassedpostmessage.dll the one i used for my flyff bot works for maple but still continues pressing R in game?
So is it just maple being retarded since theres nothign wrong with the dll's or my code or wth lol
_________________
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Aug 22, 2008 12:39 pm Post subject: |
|
|
| Shouldn't lParam be something? I don't play MapleStory, but that's what everybody do, the scan code or something.
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
|
| Back to top |
|
 |
|