Lua:getWindowlist

From Cheat Engine
Revision as of 00:53, 5 December 2025 by Leunsel (talk | contribs) (Added CodeBox Template.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
<> Function

function getWindowlist()

Returns a table with the windowlist (PID - Window Caption). The table has the following format : { PID, { ID, Caption} }

Example:

 local windowList = getWindowlist()

 -- windowList will be a table which includes data similar to that displayed below
 ----------------------------------------------
 [21112] = {
     [1] = 'Cheat Engine 7.4',
     [2] = 'Cheat Engine 7.4',
     [3] = 'Cheat Engine settings',
     [4] = 'Default IME',
     [5] = 'Lua Engine',
     [6] = 'MSCTFIME UI',
 }

See also

Lua
Script Engine

Related Functions