Lua:getWindowCaption

From Cheat Engine
Jump to navigation Jump to search

getWindowCaption(windowhandle) : string - Returns the caption of the window

local hwnd = findWindow("WTWindow", "Game")
print( getWindowCaption(hwnd) ) -- Game