View previous topic :: View next topic |
Author |
Message |
scarface010305 Newbie cheater Reputation: 0
Joined: 15 Jun 2017 Posts: 22
|
Posted: Thu Jun 15, 2017 8:27 am Post subject: Script to Read Attached Process Window Title |
|
|
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 |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Thu Jun 15, 2017 10:02 am Post subject: |
|
|
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 |
|
|
scarface010305 Newbie cheater Reputation: 0
Joined: 15 Jun 2017 Posts: 22
|
Posted: Thu Jun 15, 2017 10:16 am Post subject: |
|
|
Thank you so much !! You are the best
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 |
|
|
scarface010305 Newbie cheater Reputation: 0
Joined: 15 Jun 2017 Posts: 22
|
Posted: Tue Jun 27, 2017 12:46 pm Post subject: |
|
|
This Function is so great, but is it possible to get only the Attached Process with FindWindow ?
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 |
|
|
|