Navigation: TCC-RT > Variables & Functions > Functions
@WINPID
@WINPID[title] : Returns the process ID for the window with the specified title, or -1 if no match is found.
Example:
echo %@winpid[TCC Prompt]
438636