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 { WinSetOnTopByHandle, WinGetHandle } from '@ahmic/autoit-js';const windowHandle = WinGetHandle('Untitled - Notepad');WinSetOnTopByHandle(windowHandle, true); Copy
import { WinSetOnTopByHandle, WinGetHandle } from '@ahmic/autoit-js';const windowHandle = WinGetHandle('Untitled - Notepad');WinSetOnTopByHandle(windowHandle, true);
https://www.autoitscript.com/autoit3/docs/functions/WinSetOnTop.htm
Sets whether a window is on top of all other windows.