Jump to content

What is wrong with this?


K3STROS
 Share

Recommended Posts

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))
EndFunc

i get this error message

(88) : ==> Error in expression.: 
If IsArray($Point1) = Then ; Line 88
If ^ ERROR

:mad:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...