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 


PMA, wtf is the problem?

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

Joined: 04 May 2007
Posts: 478

PostPosted: Sun Mar 15, 2009 2:34 pm    Post subject: PMA, wtf is the problem? Reply with quote

k I'm encountering some frigging MAD WEIRD bug here.

So this is related to GB. I have trampolined PostMessageA but since I'm using mooses full gg bypass, that doesn't matter.

The issue is this.

If I am in the waiting room/channel (not in game) and I do the following:

invoke PostMessageX, hWndGB, WM_KEYDOWN, VK_F5, NULL

It works fine. F5 is received and it does what it is supposed to do.

Now, if I join a game and try the exact same call, it doesn't work for shit although the return value is positive (meaning call succeeded).

I have no clue why.

I have this other guys program which he coded in visual basic which doesn't inject any DLL's into gunbound. It just loads a dll with trampolined functions and calls them. In this case, he calls a trampolined PMA just like me.

I dissasembled his code and he does the exact same as I do:

push 0x00000000 ;no lparam
push 0x00000077 ;VK_F8
push 0x00000100 ;WM_KEYDOWN
push 0x0041028c ;hWndGB
call PMAtramp

So I don't know wth the issue is.

Why would his post message work (in game) and not mine? We are doing the exact same thing. Only difference is that I am calling PMA from a dll injected in gunbound while he is calling PMA from an executable.

Anyone got a clue wth is going on?

Thanks,
-Sean

_________________
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Sun Mar 15, 2009 3:00 pm    Post subject: Reply with quote

Maybe you imported the wrong export?
Back to top
View user's profile Send private message
Sean1337
Master Cheater
Reputation: 0

Joined: 04 May 2007
Posts: 478

PostPosted: Sun Mar 15, 2009 3:06 pm    Post subject: Reply with quote

S3NS4 wrote:
Maybe you imported the wrong export?


I am calling a trampoline in my DLL which jumps to PostMessageA+5. It works in waiting room/channel but not in game.

_________________
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Sun Mar 15, 2009 3:08 pm    Post subject: Reply with quote

Check "PMAtramp" from the guy and compare it to your call Neutral
Back to top
View user's profile Send private message
Sean1337
Master Cheater
Reputation: 0

Joined: 04 May 2007
Posts: 478

PostPosted: Sun Mar 15, 2009 3:14 pm    Post subject: Reply with quote

Identical T_T.

push ebp
mov ebp, esp
jmp PostMessageA+5

_________________
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sun Mar 15, 2009 3:26 pm    Post subject: Reply with quote

Check hWnd. That's the only thing I can think of for now.
_________________
Back to top
View user's profile Send private message
Sean1337
Master Cheater
Reputation: 0

Joined: 04 May 2007
Posts: 478

PostPosted: Sun Mar 15, 2009 3:32 pm    Post subject: Reply with quote

sponge wrote:
Check hWnd. That's the only thing I can think of for now.


I was debugging the other guys program as well as my program at the same time and hWnd was identical.

_________________
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