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 


Differentiate between two or more CE instances

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> LUA Tutorials
View previous topic :: View next topic  
Author Message
mgr.inz.Player
I post too much
Reputation: 143

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

PostPosted: Mon Nov 10, 2014 3:55 pm    Post subject: Differentiate between two or more CE instances Reply with quote

You launched CE to just speedhack some game. And another CE, with loaded cheat table and enabled cheats.

It looks like this:


And alt-tabing looks like this:





Form.Caption is the same.
Here is the code. It will set unique, more or less, application title:
Code:

processList = createStringlist()
getProcesslist(processList)

count=0
for i=0,processList.Count-1 do
  if (processList[i]:match('cheatengine%-i386.exe')) or
     (processList[i]:match('cheatengine%-x86_64.exe')) then
    count=count+1
  end
end

if processList and processList.destroy then processList.destroy() end

if count>1 then
  getMainForm().Caption = getMainForm().Caption..' ('..os.date('%X')..'  '..os.clock()..')'
end

getApplication().Title = getMainForm().Caption


Not it will look something like this:





When you launched second CE after bigger pause, first CE won't have changed title.


I just remember "launch time" and/or "execution time" (how long do you have to wait for GUI).

_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> LUA Tutorials 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 cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites