| View previous topic :: View next topic |
| Author |
Message |
Hansmoleman Newbie cheater
Reputation: 0
Joined: 20 Mar 2011 Posts: 16
|
Posted: Sat May 07, 2011 12:46 pm Post subject: Trainer as a child window - Full Screen. |
|
|
I want to make my cheat show up inside the game im playing which runs in full screen mode with directx.
I tried getting some advice from another person who has made a cheat for the same game on a directx hook to show it inside the game. He told me that I didn't need to hook, and instead I could just make my form a child window to the game.
I tried this and every time i click my app it goes back to the desktop. Any ideas? plz help
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Sat May 07, 2011 12:48 pm Post subject: |
|
|
| Is iPromise the one who gave you this advice ?
|
|
| Back to top |
|
 |
Hansmoleman Newbie cheater
Reputation: 0
Joined: 20 Mar 2011 Posts: 16
|
Posted: Sat May 07, 2011 12:56 pm Post subject: |
|
|
| Nope he doesn't use this forum. He's a very good coder and I have tried his cheat program.
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Sat May 07, 2011 1:40 pm Post subject: |
|
|
Well yes on some games, if you create a transparent window and set it as the child of the game window, it will draw in synchronization and avoid flickering. That's really the only trick..
What do you mean by 'it goes back to the desktop' ?
|
|
| Back to top |
|
 |
Hansmoleman Newbie cheater
Reputation: 0
Joined: 20 Mar 2011 Posts: 16
|
Posted: Sat May 07, 2011 1:49 pm Post subject: |
|
|
| It doesn't display the game when I click on my program. It effectivly alt + tabs out.
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Sat May 07, 2011 2:06 pm Post subject: |
|
|
Did you inject your trainer inside the game? If you have it overlayed to the directx, but a child of a different process, then it will switch to that process when given focus.
So you have to make sure that your window is a part of the directx window's process
_________________
|
|
| Back to top |
|
 |
Hansmoleman Newbie cheater
Reputation: 0
Joined: 20 Mar 2011 Posts: 16
|
Posted: Sat May 07, 2011 2:28 pm Post subject: |
|
|
| HomerSexual wrote: | Did you inject your trainer inside the game? If you have it overlayed to the directx, but a child of a different process, then it will switch to that process when given focus.
So you have to make sure that your window is a part of the directx window's process |
So it has to be injected?
I was just trying this lol
| Code: |
wnd := FindWindow(nil,'Game');
Windows.SetParent(Handle,wnd);
SetWindowPos(handle,HWND_TOPMOST,1,1,ClientWidth,ClientHeight,SWP_SHOWWINDOW) |
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sat May 07, 2011 3:21 pm Post subject: |
|
|
| i'm not so sure that this would work in a fullscreen dx game. i'd think it would interrupt the game in one way or another.
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Sat May 07, 2011 4:57 pm Post subject: |
|
|
| Hansmoleman wrote: | | HomerSexual wrote: | Did you inject your trainer inside the game? If you have it overlayed to the directx, but a child of a different process, then it will switch to that process when given focus.
So you have to make sure that your window is a part of the directx window's process |
So it has to be injected?
I was just trying this lol
| Code: |
wnd := FindWindow(nil,'Game');
Windows.SetParent(Handle,wnd);
SetWindowPos(handle,HWND_TOPMOST,1,1,ClientWidth,ClientHeight,SWP_SHOWWINDOW) |
|
I may be wrong here, I probably am. I am just going to try a long shot that I feel could be true.
While you set the windows parent to the Game window, the process itself is still the original one. I think process overrides child/parent relationship
_________________
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Sun May 08, 2011 4:25 am Post subject: |
|
|
| oh. did you make sure that your child window has the correct styles ?
|
|
| Back to top |
|
 |
Hansmoleman Newbie cheater
Reputation: 0
Joined: 20 Mar 2011 Posts: 16
|
Posted: Sun May 08, 2011 10:28 am Post subject: |
|
|
| Slugsnack wrote: | | oh. did you make sure that your child window has the correct styles ? |
What are the correct styles?
It crashes as a child for some reason.
Edit - Thank you!!!! Got it working
|
|
| Back to top |
|
 |
|