Lua:getWindowlist

From Cheat Engine
Revision as of 00:53, 5 December 2025 by Leunsel (talk | contribs) (Added CodeBox Template.)
Jump to navigation Jump to search

<> Lua API Reference

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',
 }

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Related Functions