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 


fgfgfg
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Mon Aug 06, 2018 8:20 pm    Post subject: Reply with quote

t328163 wrote:
Corroder wrote:
Maybe because use chrome as browser. When open a online game using chrome browser then need to find correct PID which need convert hex to dec for PID number.


Exactly Very Happy


These happen if open process call 'flash plugin container' and chrome will show some process with same name 'chrome.exe' on process list. So then need to find which one is the correct process. By testing all PID with open process. Maybe this part mentioned as "consuming time" (I call it as spending time)

But, if the case is about flash plugin container as "open process" then why not implement auto attach process ?. Answer can be found here :

https://www.cheatengine.org/forum/viewtopic.php?t=581188&sid=eced69592c9178fdb9e91ce29d85554f

and again about "consuming time", I guess don't want doing this steps :

https://forum.cheatengine.org/viewtopic.php?t=574508

Am I right ?.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Tue Aug 07, 2018 8:27 pm    Post subject: Reply with quote

Here is a very simple autorun script to do this. Open Cheat Engine's install folder, open the autorun folder, create a new file called:
processlistmod.lua

Paste and save this into the script:
Code:

--[[
Process List With Decimal Id (processlistmod.lua)
(c) 2018 atom0s [[email protected]]

A simple autorun script for Cheat Engine 6.8.1 which will alter the process
name list to also include the decimal format of the process id in the names.

Works with 'Applications', 'Processes' and 'Windows' lists to show the decimal
form of each lists entries.
]]--

processListTimer = processListTimer or createTimer();
processListTimer.Interval = 500;
processListTimer.OnTimer = function(t)
    -- Loop and find the process window..
    local fcount = getFormCount();
    for x = 0, fcount - 1 do
        local wnd = getForm(x);
        if (wnd ~= nil and string.lower(wnd.getName()) == 'processwindow') then
            -- Find the process list control..
            local lst = wnd.findComponentByName('ProcessList');
            if (lst ~= nil) then
                -- Loop and update the names..
                local names = lst.getItems();
                for y = 0, names.getCount() - 1 do
                    -- Check if the process name has been edited already..
                    -- This will use the known process id in decimal to validate since window titles can have similar text..
                    local pid, name = string.match(names[y], '([A-Fa-f0-9]+)-(.+)');
                    local dec = tonumber(pid, 16);
                    if (string.find(name, '%(' .. tostring(dec) .. '%)') == nil) then
                        names[y] = string.format('%s-(%d)-%s', pid, dec, name);
                    end
                end
            end

            -- Finish here since we found the window already..
            return;
        end
    end
end
processListTimer.setEnabled(true);


Restart cheat engine if it's already open, now when the process list window is open, you'll see results like this:


The hex version of the name must be at the front due to how CE opens processes. The name of the process wont show in CE's main window title any longer either due to this mod. (Not a big deal to me, but should get what you want.)

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Wed Aug 08, 2018 8:42 pm    Post subject: Reply with quote

The event Dark Byte pointed out is the event that is called after you choose a process from the list.

I'm not aware of any event that happens to state when the process window is opened, pretty sure there isn't one currently which is why I went with a polling method for now.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Thu Aug 09, 2018 1:47 am    Post subject: Reply with quote

you can try
Code:

getApplication().ProcessWindow.OnShow


do run the original OnShow before you do anything in your code, as onshow populates the results

getApplication().ProcessWindow.TabControl1.OnChange can be useful to hook as well as it triggers a refresh

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
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 All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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