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 


I need help regarding the function that opens the window

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Stacktrace
Expert Cheater
Reputation: 1

Joined: 04 Jul 2015
Posts: 105

PostPosted: Wed May 18, 2016 8:35 am    Post subject: I need help regarding the function that opens the window Reply with quote

Hey, I'd like some help here.. I'm wondering what programs/games uses to launch their client. Let's say you click 'Play' on a browser game which then will open up a program (.exe) which will load you into the game, what's the function that does this? I'd like to create a thread on it and see what happens, two clients would be pretty neat, eh? Oh and, this game has a check to see how many clients are running, so if you're in the game you can't play another game because that'll close the current client, what's the function that does this? I want to get rid of it so I can play on as many windows I want to. Thanks!
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed May 18, 2016 12:52 pm    Post subject: Reply with quote

Depends on the game and if they have you install a third-party plugin to your browser to launch it. If so they may use things like:
- CreateProcess
- ShellExecute

If it's something like Steam, they register a protocol handler (steam://) and use that to execute application stuff on your system. More info on Steams protocol:
https://developer.valvesoftware.com/wiki/Steam_browser_protocol

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Stacktrace
Expert Cheater
Reputation: 1

Joined: 04 Jul 2015
Posts: 105

PostPosted: Wed May 18, 2016 1:10 pm    Post subject: Reply with quote

atom0s wrote:
Depends on the game and if they have you install a third-party plugin to your browser to launch it. If so they may use things like:
- CreateProcess
- ShellExecute

If it's something like Steam, they register a protocol handler (steam://) and use that to execute application stuff on your system. More info on Steams protocol:
https://developer.valvesoftware.com/wiki/Steam_browser_protocol


Thanks for the reply.
Nah, it's not a steam game, nor did it use any of the functions you listed. Hm, can we jump over what launches it and rather look into how it finds out that you already have a window up? Look at it like, you can't have two Skype programs open, it'll only switch to one. This game closes the one window if another one from the game opens. If you use the CE feature to pause the game, then you go to dissect windows, then you hide it, the game will obviously crash, but if you keep the crashed process up, frozen game w/e, the check for windows won't get you so you're able to join on as many clients you want to. What do you think the function for this is? I want to stop it from running or modify it's magic so I can manually launch as many windows as I want to.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed May 18, 2016 11:43 pm    Post subject: Reply with quote

That is done using one of many aspects to prevent multiple clients. The most common method is done using CreateMutex. I just mentioned this in another topic here:
http://forum.cheatengine.org/viewtopic.php?p=5671494#5671494

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Stacktrace
Expert Cheater
Reputation: 1

Joined: 04 Jul 2015
Posts: 105

PostPosted: Thu May 19, 2016 8:05 am    Post subject: Reply with quote

atom0s wrote:
That is done using one of many aspects to prevent multiple clients. The most common method is done using CreateMutex. I just mentioned this in another topic here:
http://forum.cheatengine.org/viewtopic.php?p=5671494#5671494


Thanks, I'll look into it!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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