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 


how to insert application into the games GUI
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Sun Apr 13, 2008 9:05 am    Post subject: Reply with quote

Omega-Assassin wrote:
since im going to have to learn C# anyways i just downloaded and installed Microsoft Visual C# 2008 Express Edition... im going to learn a little more about the way the code are written and try to recreate my entire beta program in a application then go back into the detail of getting it to run in the games GUI... it would probably be alot easier this way anyways :-/... not to mention i wanted to learn C# anyways Confused


C# cannot create standard Win32 DLLs which you will need to use when creating something that will be injected into another processes memory space.

This is entirely possible though and has been done before, for example:
http://www.gameoverlay.com/

I assume thats what you are trying to achieve. The above uses the same methods as others listed above by drawing to the games DirectX interface.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Omega-Assassin
Newbie cheater
Reputation: 0

Joined: 11 Apr 2008
Posts: 16

PostPosted: Sun Apr 13, 2008 6:21 pm    Post subject: Reply with quote

why C++ arent they basicly the same with the exception of the way code is placed? (posted this b4 i saw the last post >_< )


EDIT: yea thats what im trying to do... only with my own applications.... so C++ would be best to use for doing then then?
Back to top
View user's profile Send private message
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Sun Apr 13, 2008 11:26 pm    Post subject: Reply with quote

Omega-Assassin wrote:
why C++ arent they basicly the same with the exception of the way code is placed? (posted this b4 i saw the last post >_< )


EDIT: yea thats what im trying to do... only with my own applications.... so C++ would be best to use for doing then then?

Yes.
Back to top
View user's profile Send private message
Omega-Assassin
Newbie cheater
Reputation: 0

Joined: 11 Apr 2008
Posts: 16

PostPosted: Mon Apr 14, 2008 12:29 am    Post subject: Reply with quote

ok... just so im on track... i need to learn C++ then make a .dll inject it into the game to input my application into the games GUI by messing with the DxOverlay... am i pretty accurate?
Back to top
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Mon Apr 14, 2008 12:34 am    Post subject: Reply with quote

Omega-Assassin wrote:
why C++ arent they basicly the same with the exception of the way code is placed? (posted this b4 i saw the last post >_< )


EDIT: yea thats what im trying to do... only with my own applications.... so C++ would be best to use for doing then then?

No, it's a lot different.

_________________
haxory' wrote:
can't VB do anything??
windows is programmed using VB right? correct me if im wrong.

so all things in windows you have like the start menu is a windows form too.
Back to top
View user's profile Send private message
Omega-Assassin
Newbie cheater
Reputation: 0

Joined: 11 Apr 2008
Posts: 16

PostPosted: Mon Apr 14, 2008 3:40 am    Post subject: Reply with quote

Okay... C++ it is then... ill uninstall C# and download C++ and get started on learning the way things work on there...can anyone give me a site to get started on... i don't want snippets or tuts... i just need to learn the basic functions before i get into the other things Confused
_________________
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Mon Apr 14, 2008 5:33 am    Post subject: Reply with quote

He meant like, to make a Form and make the game show inside it.

something like DXWnd.
Back to top
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Mon Apr 14, 2008 5:39 am    Post subject: Reply with quote

Rot1 wrote:
He meant like, to make a Form and make the game show inside it.

something like DXWnd.

No, he didn't.

_________________
haxory' wrote:
can't VB do anything??
windows is programmed using VB right? correct me if im wrong.

so all things in windows you have like the start menu is a windows form too.
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Mon Apr 14, 2008 7:12 am    Post subject: Reply with quote

it is possible with vb.net and C#.net and even vb6 xD im talking about

hwnd = FindWindow('game');
then u access GDI32 api it lets you draw text on top of any program all u need is a handle
bitblt(hwnd, some stuff here i forgot ,x , y's , etc);

run bitblt in a timer to refresh every 100 it will redraw nicely

i dont think u could draw interfaces and pictures but its good enough to make a little text menu Underground Hack : ON/OFF

yes it supports colors too.
Back to top
View user's profile Send private message
Omega-Assassin
Newbie cheater
Reputation: 0

Joined: 11 Apr 2008
Posts: 16

PostPosted: Mon Apr 14, 2008 2:26 pm    Post subject: Reply with quote

Rot1 wrote:
He meant like, to make a Form and make the game show inside it.

something like DXWnd.


no you have it backwards lol... i want to make a form and make the form show inside the game Razz

and to pkedpker by using a timer it runs the cpu up quite a bit and can cause a lot of lag... or at least lag spikes if not done properly

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

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Mon Apr 14, 2008 11:27 pm    Post subject: Reply with quote

This is a very basic code/tutorial for putting the form inside a WINDOWED application.

Raiko on Extalia.com wrote:
Tips for creating your trainer window inside a windowed game


There is only one way I know, but it's very simple Smile.

First you have to deal with getting the window inside. So you do this

Form1.FormCreate:

var
Gamehwnd: HWND;
pstyle: DWORD;
begin
Gamehwnd := FindWindow(Nil, 'Kingdom of Drakkar (4.1r1)');
pstyle := GetWindowLong(Gamehwnd, GWL_STYLE);
pstyle := pstyle or WS_CLIPCHILDREN;
SetWindowLong(Gamehwnd, GWL_STYLE, pstyle);
Windows.SetParent(Form1.Handle, Gamehwnd);
SetWindowPos(Form1.Handle, HWND_TOP, 100, 100, 500, 100, SWP_NOSIZE or SWP_NOMOVE);

This will get it inside the game, but it will also leave the trainer's button in the taskbar.

To remove it:

The portion of code where the application forms are created and the program is started.

SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);

right before Application.Run


Remember: Fullscreen games won't work. They have to be in a window.

Main topic
Back to top
View user's profile Send private message
Omega-Assassin
Newbie cheater
Reputation: 0

Joined: 11 Apr 2008
Posts: 16

PostPosted: Tue Apr 15, 2008 2:44 am    Post subject: Reply with quote

thats actually kinda useful 0_o... i might be able to make the work in full screen games if I can figure out a little more about what I'm doing Shocked
_________________
Back to top
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Tue Apr 15, 2008 2:47 am    Post subject: Reply with quote

Moller wrote:
This is a very basic code/tutorial for putting the form inside a WINDOWED application.

Raiko on Extalia.com wrote:
Tips for creating your trainer window inside a windowed game


There is only one way I know, but it's very simple Smile.

First you have to deal with getting the window inside. So you do this

Form1.FormCreate:

var
Gamehwnd: HWND;
pstyle: DWORD;
begin
Gamehwnd := FindWindow(Nil, 'Kingdom of Drakkar (4.1r1)');
pstyle := GetWindowLong(Gamehwnd, GWL_STYLE);
pstyle := pstyle or WS_CLIPCHILDREN;
SetWindowLong(Gamehwnd, GWL_STYLE, pstyle);
Windows.SetParent(Form1.Handle, Gamehwnd);
SetWindowPos(Form1.Handle, HWND_TOP, 100, 100, 500, 100, SWP_NOSIZE or SWP_NOMOVE);

This will get it inside the game, but it will also leave the trainer's button in the taskbar.

To remove it:

The portion of code where the application forms are created and the program is started.

SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);

right before Application.Run


Remember: Fullscreen games won't work. They have to be in a window.

Main topic

He's not using Delphi.

_________________
haxory' wrote:
can't VB do anything??
windows is programmed using VB right? correct me if im wrong.

so all things in windows you have like the start menu is a windows form too.
Back to top
View user's profile Send private message
Omega-Assassin
Newbie cheater
Reputation: 0

Joined: 11 Apr 2008
Posts: 16

PostPosted: Tue Apr 15, 2008 2:50 am    Post subject: Reply with quote

thats delphi? Confused wow... I feel like a noob now lmao... then again I have never seen delphi scripts before... so I don't feel to bad :-/
_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Tue Apr 15, 2008 3:57 am    Post subject: Reply with quote

Omega-Assassin wrote:
thats delphi? Confused wow... I feel like a noob now lmao... then again I have never seen delphi scripts before... so I don't feel to bad :-/


Just look at the API that was used in the post and convert it to your language. Shouldn't be hard to do that.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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