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 


[VB6] Mouse Hook Help

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

Joined: 15 Jan 2008
Posts: 183

PostPosted: Fri Aug 01, 2008 4:50 pm    Post subject: [VB6] Mouse Hook Help Reply with quote

Hey all,
I'm having trouble getting past gameguard's api hooks and hooking to maplestory. My autoclicker works great but i guess i need something like hookhop but for vb6. Anybody have any source code or something that could help me out. I know this is a lot to ask since hardly anybody can bypass gameguard but any help would be great.


Wink

_________________
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Sat Aug 02, 2008 2:34 pm    Post subject: Reply with quote

use hook hop and call PostMessageX.
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat Aug 02, 2008 2:41 pm    Post subject: Reply with quote

dnsi0 wrote:
use hook hop and call PostMessageX.


Just in case the OP doesn't know how:

Code:

DWORD PMA = (DWORD)GetProcAddress(LoadLibrary("USER32.DLL"), "PostMessageA")+5;

_declspec(naked) BOOL PostMessageX(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) {
   _asm {
      mov edi, edi
      push ebp
      mov ebp, esp
      jmp[PMA]
   }
}

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
newgirlorder
Expert Cheater
Reputation: 0

Joined: 15 Jan 2008
Posts: 183

PostPosted: Tue Aug 05, 2008 12:28 pm    Post subject: Reply with quote

oib111 wrote:
dnsi0 wrote:
use hook hop and call PostMessageX.


Just in case the OP doesn't know how:

Code:

DWORD PMA = (DWORD)GetProcAddress(LoadLibrary("USER32.DLL"), "PostMessageA")+5;

_declspec(naked) BOOL PostMessageX(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) {
   _asm {
      mov edi, edi
      push ebp
      mov ebp, esp
      jmp[PMA]
   }
}


Sadly i'm dealing with VB6... so that won't work.

_________________
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Aug 05, 2008 1:07 pm    Post subject: Reply with quote

You could always use hookhop.dll or w/e its called.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Fuzz
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2006
Posts: 531

PostPosted: Tue Aug 05, 2008 1:50 pm    Post subject: Reply with quote

Just include hookhop.dll, through some sort of loadlibrary, (for VB6), or include it with your project, and then call postmessageX
Back to top
View user's profile Send private message AIM Address
newgirlorder
Expert Cheater
Reputation: 0

Joined: 15 Jan 2008
Posts: 183

PostPosted: Sat Aug 30, 2008 12:48 pm    Post subject: Reply with quote

i know about hookhop and pmx.dll

but i have no idea how to call those functions through vb.. i don't even think it's possible.

thanks though

_________________
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Sat Aug 30, 2008 1:03 pm    Post subject: Reply with quote

LOL... T.T

Public Declare Function PostMessage Lib "PMX.dll" Alias "PostMessageX" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

Edit Learn More VB Before Making A Trainer... You should know this stuff before you start making trainers.
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