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