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] PMX.DLL Visual basic

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

Joined: 29 Apr 2008
Posts: 64
Location: Co

PostPosted: Thu Aug 21, 2008 10:15 pm    Post subject: [Help] PMX.DLL Visual basic Reply with quote

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
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Thu Aug 21, 2008 10:20 pm    Post subject: Reply with quote

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"

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
EvilHottness
Advanced Cheater
Reputation: 0

Joined: 29 Apr 2008
Posts: 64
Location: Co

PostPosted: Thu Aug 21, 2008 10:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Thu Aug 21, 2008 10:28 pm    Post subject: Reply with quote

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!

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
EvilHottness
Advanced Cheater
Reputation: 0

Joined: 29 Apr 2008
Posts: 64
Location: Co

PostPosted: Thu Aug 21, 2008 11:01 pm    Post subject: Reply with quote

Well all i keep getting is R pressed when i specify other keys anyone else help?
_________________
Back to top
View user's profile Send private message
Overload
Master Cheater
Reputation: 0

Joined: 08 Feb 2008
Posts: 293

PostPosted: Fri Aug 22, 2008 12:02 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
EvilHottness
Advanced Cheater
Reputation: 0

Joined: 29 Apr 2008
Posts: 64
Location: Co

PostPosted: Fri Aug 22, 2008 12:09 am    Post subject: Reply with quote

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
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Fri Aug 22, 2008 9:06 am    Post subject: Reply with quote

YOu need to release the key too. WIth keyup
Back to top
View user's profile Send private message
Zand
Master Cheater
Reputation: 0

Joined: 21 Jul 2006
Posts: 424

PostPosted: Fri Aug 22, 2008 9:23 am    Post subject: Reply with quote

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
View user's profile Send private message
EvilHottness
Advanced Cheater
Reputation: 0

Joined: 29 Apr 2008
Posts: 64
Location: Co

PostPosted: Fri Aug 22, 2008 11:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Aug 22, 2008 11:45 am    Post subject: Reply with quote

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
View user's profile Send private message
EvilHottness
Advanced Cheater
Reputation: 0

Joined: 29 Apr 2008
Posts: 64
Location: Co

PostPosted: Fri Aug 22, 2008 12:10 pm    Post subject: Reply with quote

[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
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Aug 22, 2008 12:39 pm    Post subject: Reply with quote

Shouldn't lParam be something? I don't play MapleStory, but that's what everybody do, the scan code or something.
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Fri Aug 22, 2008 2:51 pm    Post subject: Reply with quote

http://msdn.microsoft.com/en-us/library/ms646280(VS.85).aspx
_________________
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