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 


getWindowlist() returns titles only, no PIDs or handles

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
xxhehe
Expert Cheater
Reputation: 0

Joined: 11 Mar 2015
Posts: 163

PostPosted: Sun Jul 26, 2026 6:25 am    Post subject: getWindowlist() returns titles only, no PIDs or handles Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Sun Jul 26, 2026 7:03 am    Post subject: This post has 1 review(s) Reply with quote

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
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
Page 1 of 1

 
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