Lua:getForegroundWindow

From Cheat Engine
Jump to navigation Jump to search

getForegroundWindow() - windowhandle : Returns the windowhandle of the topmost window

print( getWindowCaption( getForegroundWindow() ) )