Difference between revisions of "Lua:getWindowProcessID"
Jump to navigation
Jump to search
(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...") |
|||
| Line 1: | Line 1: | ||
| − | <p><b>getWindowProcessID(windowhandle)< | + | <p> |
| + | <b>getWindowProcessID(windowhandle)</b>: processid - Returns the processid of the process this window belongs to | ||
| + | </p> | ||
| + | |||
<pre> | <pre> | ||
local hwnd = findWindow("WTWindow", "Game") | local hwnd = findWindow("WTWindow", "Game") | ||
Latest revision as of 00:38, 28 August 2020
getWindowProcessID(windowhandle): processid - Returns the processid of the process this window belongs to
local hwnd = findWindow("WTWindow", "Game")
local processID,threadID = getWindowProcessID(hwnd)
print(processID, threadID)