the HandleCapture does not save images to the provided path. here is what i tried, it only returns a handle.
;~ #RequireAdmin
#include <Array.au3>
#include ".\HandleImgSearch.au3"
Local $handle = WinGetHandle(0x001A0AEA)
Local $x = 0
Local $y = 0
Local $width = 800
Local $height = 600
Local $isBMP = False
Local $savePath = @ScriptDir & "\captured_image.bmp"
Local $result = _HandleCapture($handle, $x, $y, $width, $height, $isBMP, $savePath, False)
If @error Then
MsgBox(16, "Error", "Capture failed. Error code: " & @error)
Else
MsgBox(64, "Success", "Capture successful. " & $result)
EndIf