Global $Point = MouseGetPos()
Global $Point1 = PixelSearch(599, 499, 735, 567, 0xA95C1D, 5)
$Start_Exit_GUI = GUICreate("XXX", 228, 194, 398, 222) ; Opens GUI with start/exit buttons
GUISetBkColor(0x0000FF)
$Start_Botton = GUICtrlCreateButton("START", 0, 0, 227, 89, $WS_GROUP) ; Start button
GUICtrlSetFont(-1, 28, 400, 0, "Absolute Zero")
GUICtrlSetColor(-1, 0xFF00FF)
GUICtrlSetBkColor(-1, 0x00FF00)
$Exit_Button = GUICtrlCreateButton("EXIT", 0, 96, 227, 97, $WS_GROUP) ; Exit button
GUICtrlSetFont(-1, 28, 400, 0, "Absolute Zero")
GUICtrlSetColor(-1, 0xFFFF00)
GUICtrlSetBkColor(-1, 0xFF0000)
Func SearchExample()
If IsArray($Point1) = Then
MouseClick("Left", $Point[0], $Point[1])
EndIf
Sleep((Random, 990, 1990, 1))
EndFunci get this error message (88) : ==> Error in expression.:
If IsArray($Point1) = Then ; Line 88
If ^ ERROR