Весь вопрос в названии темы
Код:
$Form1 = GUICreate("Form1", 372, 167, 191, 122)
GUISetState(@SW_SHOW)
;~ $handle = WinGetHandle("[X \ Y \ W \ H : 191 \ 122 \ 372 \ 167]")
;~ $handle = WinGetHandle("[X\Y\W\H:191\122\372\167]")
;~ $handle = WinGetHandle("[191\122\372\167]")
;~ $handle = WinGetHandle("[191 \ 122 \ 372 \ 167]")
;~ $handle = WinGetHandle("191\122\372\167")
;~ $handle = WinGetHandle("[X\Y\W\H=191\122\372\167]")
$handle = WinGetHandle("X\Y\W\H=191\122\372\167")
If @error Then
MsgBox(0, '', 'error')
Else
MsgBox(0, 'handle', $handle)
EndIf