| View previous topic :: View next topic |
| Author |
Message |
Sean1337 Master Cheater
Reputation: 0
Joined: 04 May 2007 Posts: 478
|
Posted: Sun Mar 15, 2009 2:34 pm Post subject: PMA, wtf is the problem? |
|
|
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 |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Sun Mar 15, 2009 3:00 pm Post subject: |
|
|
| Maybe you imported the wrong export?
|
|
| Back to top |
|
 |
Sean1337 Master Cheater
Reputation: 0
Joined: 04 May 2007 Posts: 478
|
Posted: Sun Mar 15, 2009 3:06 pm Post subject: |
|
|
| 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 |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Sun Mar 15, 2009 3:08 pm Post subject: |
|
|
Check "PMAtramp" from the guy and compare it to your call
|
|
| Back to top |
|
 |
Sean1337 Master Cheater
Reputation: 0
Joined: 04 May 2007 Posts: 478
|
Posted: Sun Mar 15, 2009 3:14 pm Post subject: |
|
|
Identical T_T.
push ebp
mov ebp, esp
jmp PostMessageA+5
_________________
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Sun Mar 15, 2009 3:26 pm Post subject: |
|
|
Check hWnd. That's the only thing I can think of for now.
_________________
|
|
| Back to top |
|
 |
Sean1337 Master Cheater
Reputation: 0
Joined: 04 May 2007 Posts: 478
|
Posted: Sun Mar 15, 2009 3:32 pm Post subject: |
|
|
| 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 |
|
 |
|