 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
xxhehe Expert Cheater
Reputation: 0
Joined: 11 Mar 2015 Posts: 163
|
Posted: Sun Jul 26, 2026 6:25 am Post subject: getWindowlist() returns titles only, no PIDs or handles |
|
|
| The celua.txt documentation says getWindowlist() returns a table formatted as {pid, {id, caption}}. But my actual output is a list of window titles, without process IDs or handles. Is this a bug?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25973 Location: The netherlands
|
Posted: Sun Jul 26, 2026 7:03 am Post subject: |
|
|
it returns a list of PID's and each pid contains an indexed list of windowtitles.
no handles no, just a pid and an id you can use to traverse the list
e.g: pid 22656 has a list of 8 windownames, pid 25220 has a list of 25 windownames, etc...
this may make it more clear:
| Code: |
for pid,list in pairs(getWindowList()) do
printf("processid %x has the following windows:", pid)
for i=1,#list do
printf(" %d = %s", i, list[i])
end
print("")
end
|
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|
|
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
|
|