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 


Trainer as a child window - Full Screen.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Hansmoleman
Newbie cheater
Reputation: 0

Joined: 20 Mar 2011
Posts: 16

PostPosted: Sat May 07, 2011 12:46 pm    Post subject: Trainer as a child window - Full Screen. Reply with quote

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 Smile
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sat May 07, 2011 12:48 pm    Post subject: Reply with quote

Is iPromise the one who gave you this advice ?
Back to top
View user's profile Send private message
Hansmoleman
Newbie cheater
Reputation: 0

Joined: 20 Mar 2011
Posts: 16

PostPosted: Sat May 07, 2011 12:56 pm    Post subject: Reply with quote

Nope he doesn't use this forum. He's a very good coder and I have tried his cheat program.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sat May 07, 2011 1:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hansmoleman
Newbie cheater
Reputation: 0

Joined: 20 Mar 2011
Posts: 16

PostPosted: Sat May 07, 2011 1:49 pm    Post subject: Reply with quote

It doesn't display the game when I click on my program. It effectivly alt + tabs out.
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sat May 07, 2011 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hansmoleman
Newbie cheater
Reputation: 0

Joined: 20 Mar 2011
Posts: 16

PostPosted: Sat May 07, 2011 2:28 pm    Post subject: Reply with quote

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

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat May 07, 2011 3:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sat May 07, 2011 4:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun May 08, 2011 4:25 am    Post subject: Reply with quote

oh. did you make sure that your child window has the correct styles ?
Back to top
View user's profile Send private message
Hansmoleman
Newbie cheater
Reputation: 0

Joined: 20 Mar 2011
Posts: 16

PostPosted: Sun May 08, 2011 10:28 am    Post subject: Reply with quote

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 Smile
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