Closes a window.
The handle of the window to close.
A promise that resolves to 1 if successful, or 0 otherwise.
import { WinCloseByHandle, WinGetHandle } from '@ahmic/autoit-js';const handle = await WinGetHandle('Untitled - Notepad');await WinCloseByHandle(handle); Copy
import { WinCloseByHandle, WinGetHandle } from '@ahmic/autoit-js';const handle = await WinGetHandle('Untitled - Notepad');await WinCloseByHandle(handle);
https://www.autoitscript.com/autoit3/docs/functions/WinClose.htm
Closes a window.