Activates a window.
The title of the window to activate.
Optional text found in the window.
A promise that resolves to 1 if successful, or 0 otherwise.
import { WinActivate } from '@ahmic/autoit-js';await WinActivate('Untitled - Notepad'); Copy
import { WinActivate } from '@ahmic/autoit-js';await WinActivate('Untitled - Notepad');
https://www.autoitscript.com/autoit3/docs/functions/WinActivate.htm
Activates a window.