Sets whether a window is on top of all other windows.
The title of the window to set on top.
Optional text found in the window.
Whether to set the window on top or not.
A promise that resolves to 1 if the operation was successful, or 0 otherwise.
import { WinSetOnTop } from '@ahmic/autoit-js';await WinSetOnTop('Untitled - Notepad', '', true); Copy
import { WinSetOnTop } from '@ahmic/autoit-js';await WinSetOnTop('Untitled - Notepad', '', true);
https://www.autoitscript.com/autoit3/docs/functions/WinSetOnTop.htm
Sets whether a window is on top of all other windows.