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 


Script to Read Attached Process Window Title

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

Joined: 15 Jun 2017
Posts: 22

PostPosted: Thu Jun 15, 2017 8:27 am    Post subject: Script to Read Attached Process Window Title Reply with quote

Hey there,

im pretty new on Lua Coding.
I want to read the Window Title from the attached Process.

Actually i created a Trainer for a Game, and this Game has some Informations in the MainWindowTitle like: FPS, recv. . .

I want to grab these Informations for my scripts.

Sorry for bad english

Ty
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Jun 15, 2017 10:02 am    Post subject: Reply with quote

You will need CE6.7

As an example, I will use Prey2017 game.

Open prey.exe process.
Open Memory Viewer, open "Window Dissector" from tools menu.

I have something like this:

There is window handle, caption, class name

as you can see, main window class is CryENGINE.



From now on, I can take window caption like this:
Code:
local handle = findWindow('CryENGINE')
local caption = getWindowCaption(handle)
print(caption)

output will be:
>Prey

_________________
Back to top
View user's profile Send private message MSN Messenger
scarface010305
Newbie cheater
Reputation: 0

Joined: 15 Jun 2017
Posts: 22

PostPosted: Thu Jun 15, 2017 10:16 am    Post subject: Reply with quote

Thank you so much !! You are the best Smile

One more Question. When i close my Trainer. I will not shutdown the trainer in processlist. Is this normal ?

#Edit: Found it
Code:
  closeCE()
  return caFree
Back to top
View user's profile Send private message
scarface010305
Newbie cheater
Reputation: 0

Joined: 15 Jun 2017
Posts: 22

PostPosted: Tue Jun 27, 2017 12:46 pm    Post subject: Reply with quote

This Function is so great, but is it possible to get only the Attached Process with FindWindow ? Very Happy

I made a Timer for reading this Informations.
The Problem is, when i have multiple Processes Running, it will take the last started process.
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 Discussions 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