Retrieves the process ID associated with a window.
The title of the window to access.
Optional text found in the window.
The process ID as a number.
import { WinGetProcess } from '@ahmic/autoit-js';const processId = WinGetProcess('Untitled - Notepad');console.log(processId); // Output: 1234 Copy
import { WinGetProcess } from '@ahmic/autoit-js';const processId = WinGetProcess('Untitled - Notepad');console.log(processId); // Output: 1234
https://www.autoitscript.com/autoit3/docs/functions/WinGetProcess.htm
Retrieves the process ID associated with a window.