Lua:getWindowProcessID

From Cheat Engine
Revision as of 00:37, 28 August 2020 by Ajanuw (talk | contribs) (Created page with "<p><b>getWindowProcessID(windowhandle)<\b>: processid - Returns the processid of the process this window belongs to</p> <pre> local hwnd = findWindow("WTWindow", "Game") local...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getWindowProcessID(windowhandle)<\b>: processid - Returns the processid of the process this window belongs to

local hwnd = findWindow("WTWindow", "Game")
local processID,threadID = getWindowProcessID(hwnd)
print(processID, threadID)