Sets whether a window is on top of all other windows.
The handle of the window to set on top.
Whether to set the window on top or not.
1 if the operation was successful, 0 otherwise.
import { WinSetOnTopByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js';const windowHandle = WinGetHandleSync('Untitled - Notepad');WinSetOnTopByHandleSync(windowHandle, true); Copy
import { WinSetOnTopByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js';const windowHandle = WinGetHandleSync('Untitled - Notepad');WinSetOnTopByHandleSync(windowHandle, true);
https://www.autoitscript.com/autoit3/docs/functions/WinSetOnTop.htm
Sets whether a window is on top of all other windows.