mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Mon Nov 10, 2014 3:55 pm Post subject: Differentiate between two or more CE instances |
|
|
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).
_________________
|
|