Sign in to follow this  
Followers 0
toto2tor

Please,help this scripts.

3 posts in this topic

#1 ·  Posted (edited)

my friend gives me a script that he was write and told to make it myself .I would like to run this script on the latest googlechrome version I try to deleted some line it doesn't work and always show me an error message.

how can i run it on googlechrome

Func _ChooseColor($IRETURNTYPE = 0, $ICOLORREF = 0, $IREFTYPE = 0, $HWNDOWNDER = 0)
    Local $CUSTCOLORS = "int[16]", $TCC, $TCHOOSE, $COLOR_PICKED, $IRESULT
    $TCHOOSE = DllStructCreate($TAGCHOOSECOLOR)
    $TCC = DllStructCreate($CUSTCOLORS)
    If ($IREFTYPE == 1) Then
        $ICOLORREF = Int($ICOLORREF)
    ElseIf ($IREFTYPE == 2) Then
        $ICOLORREF = Hex(String($ICOLORREF), 6)
        $ICOLORREF = "0x" & StringMid($ICOLORREF, 5, 2) & StringMid($ICOLORREF, 3, 2) & StringMid($ICOLORREF, 1, 2)
    EndIf
    DllStructSetData($TCHOOSE, "Size", DllStructGetSize($TCHOOSE))
    DllStructSetData($TCHOOSE, "hWndOwnder", $HWNDOWNDER)
    DllStructSetData($TCHOOSE, "rgbResult", $ICOLORREF)
    DllStructSetData($TCHOOSE, "CustColors", DllStructGetPtr($TCC))
    DllStructSetData($TCHOOSE, "Flags", BitOR($__MISCCONSTANT_CC_ANYCOLOR, $__MISCCONSTANT_CC_FULLOPEN, $__MISCCONSTANT_CC_RGBINIT))
    $IRESULT = DllCall("comdlg32.dll", "long", "ChooseColor", "ptr", DllStructGetPtr($TCHOOSE))
    If ($IRESULT[0] == 0) Then Return SetError(-3, -3, -1)
    $COLOR_PICKED = DllStructGetData($TCHOOSE, "rgbResult")
    If ($IRETURNTYPE == 1) Then
        Return "0x" & Hex(String($COLOR_PICKED), 6)
    ElseIf ($IRETURNTYPE == 2) Then
        $COLOR_PICKED = Hex(String($COLOR_PICKED), 6)
        Return "0x" & StringMid($COLOR_PICKED, 5, 2) & StringMid($COLOR_PICKED, 3, 2) & StringMid($COLOR_PICKED, 1, 2)
    ElseIf ($IRETURNTYPE == 0) Then
        Return $COLOR_PICKED
    Else
        Return SetError(-4, -4, -1)
    EndIf
EndFunc


Func _ChooseFont($SFONTNAME = "Courier New", $IPOINTSIZE = 10, $ICOLORREF = 0, $IFONTWEIGHT = 0, $IITALIC = False, $IUNDERLINE = False, $ISTRIKETHRU = False, $HWNDOWNER = 0)
    Local $TLOGFONT, $TCHOOSEFONT, $LNGDC, $LFHEIGHT, $IRESULT
    Local $FONTNAME, $ITALIC = 0, $UNDERLINE = 0, $STRIKEOUT = 0
    Local $ATTRIBUTES, $SIZE, $WEIGHT, $COLORREF, $COLOR_PICKED
    $LNGDC = _MISC_GETDC(0)
    $LFHEIGHT = Round(($IPOINTSIZE * _MISC_GETDEVICECAPS($LNGDC, $LOGPIXELSX)) / 72, 0)
    _MISC_RELEASEDC(0, $LNGDC)
    $TCHOOSEFONT = DllStructCreate($TAGCHOOSEFONT)
    $TLOGFONT = DllStructCreate($TAGLOGFONT)
    DllStructSetData($TCHOOSEFONT, "Size", DllStructGetSize($TCHOOSEFONT))
    DllStructSetData($TCHOOSEFONT, "hWndOwner", $HWNDOWNER)
    DllStructSetData($TCHOOSEFONT, "LogFont", DllStructGetPtr($TLOGFONT))
    DllStructSetData($TCHOOSEFONT, "PointSize", $IPOINTSIZE)
    DllStructSetData($TCHOOSEFONT, "Flags", BitOR($CF_SCREENFONTS, $CF_PRINTERFONTS, $CF_EFFECTS, $CF_INITTOLOGFONTSTRUCT, $CF_NOSCRIPTSEL))
    DllStructSetData($TCHOOSEFONT, "rgbColors", $ICOLORREF)
    DllStructSetData($TCHOOSEFONT, "FontType", 0)
    DllStructSetData($TLOGFONT, "Height", $LFHEIGHT)
    DllStructSetData($TLOGFONT, "Weight", $IFONTWEIGHT)
    DllStructSetData($TLOGFONT, "Italic", $IITALIC)
    DllStructSetData($TLOGFONT, "Underline", $IUNDERLINE)
    DllStructSetData($TLOGFONT, "Strikeout", $ISTRIKETHRU)
    DllStructSetData($TLOGFONT, "FaceName", $SFONTNAME)
    $IRESULT = DllCall("comdlg32.dll", "long", "ChooseFont", "ptr", DllStructGetPtr($TCHOOSEFONT))
    If ($IRESULT[0] == 0) Then Return SetError(-3, -3, -1)
    $FONTNAME = DllStructGetData($TLOGFONT, "FaceName")
    If (StringLen($FONTNAME) == 0 And StringLen($SFONTNAME) > 0) Then $FONTNAME = $SFONTNAME
    If (DllStructGetData($TLOGFONT, "Italic")) Then $ITALIC = 2
    If (DllStructGetData($TLOGFONT, "Underline")) Then $UNDERLINE = 4
    If (DllStructGetData($TLOGFONT, "Strikeout")) Then $STRIKEOUT = 8
    $ATTRIBUTES = BitOR($ITALIC, $UNDERLINE, $STRIKEOUT)
    $SIZE = DllStructGetData($TCHOOSEFONT, "PointSize") / 10
    $COLORREF = DllStructGetData($TCHOOSEFONT, "rgbColors")
    $WEIGHT = DllStructGetData($TLOGFONT, "Weight")
    $COLOR_PICKED = Hex(String($COLORREF), 6)
    Return StringSplit($ATTRIBUTES & "," & $FONTNAME & "," & $SIZE & "," & $WEIGHT & "," & $COLORREF & "," & "0x" & $COLOR_PICKED & "," & "0x" & StringMid($COLOR_PICKED, 5, 2) & StringMid($COLOR_PICKED, 3, 2) & StringMid($COLOR_PICKED, 1, 2), ",")
EndFunc


Func _ClipPutFile($SFILE, $SSEPERATOR = "|")
    Local $VDLLCALLTMP, $NGLOBMEMSIZE, $HGLOBAL, $DROPFILES, $I, $HLOCK
    Local $GMEM_MOVEABLE = 2, $CF_HDROP = 15
    $SFILE &= $SSEPERATOR & $SSEPERATOR
    $NGLOBMEMSIZE = (StringLen($SFILE) + 20)
    $VDLLCALLTMP = DllCall("user32.dll", "int", "OpenClipboard", "hwnd", 0)
    If @error Or $VDLLCALLTMP[0] = 0 Then Return SetError(1, 1, False)
    $VDLLCALLTMP = DllCall("user32.dll", "int", "EmptyClipboard")
    If @error Or $VDLLCALLTMP[0] = 0 Then Return SetError(2, 2, False)
    $VDLLCALLTMP = DllCall("kernel32.dll", "hwnd", "GlobalAlloc", "int", $GMEM_MOVEABLE, "int", $NGLOBMEMSIZE)
    If @error Or $VDLLCALLTMP[0] < 1 Then Return SetError(3, 3, False)
    $HGLOBAL = $VDLLCALLTMP[0]
    $VDLLCALLTMP = DllCall("kernel32.dll", "hwnd", "GlobalLock", "long", $HGLOBAL)
    If @error Or $VDLLCALLTMP[0] < 1 Then Return SetError(4, 4, False)
    $HLOCK = $VDLLCALLTMP[0]
    $DROPFILES = DllStructCreate("dword;ptr;int;int;int;char[" & StringLen($SFILE) + 1 & "]", $HLOCK)
    If @error Then Return SetError(5, 6, False)
    Local $TEMPSTRUCT = DllStructCreate("dword;ptr;int;int;int")
    DllStructSetData($DROPFILES, 1, DllStructGetSize($TEMPSTRUCT))
    DllStructSetData($DROPFILES, 2, 0)
    DllStructSetData($DROPFILES, 3, 0)
    DllStructSetData($DROPFILES, 4, 0)
    DllStructSetData($DROPFILES, 5, 0)
    DllStructSetData($DROPFILES, 6, $SFILE)
    For $I = 1 To StringLen($SFILE)
        If DllStructGetData($DROPFILES, 6, $I) = $SSEPERATOR Then DllStructSetData($DROPFILES, 6, Chr(0), $I)
    Next
    $VDLLCALLTMP = DllCall("user32.dll", "long", "SetClipboardData", "int", $CF_HDROP, "long", $HGLOBAL)
    If @error Or $VDLLCALLTMP[0] < 1 Then Return SetError(6, 6, False)
    $VDLLCALLTMP = DllCall("user32.dll", "int", "CloseClipboard")
    If @error Or $VDLLCALLTMP[0] = 0 Then Return SetError(7, 7, False)
    $VDLLCALLTMP = DllCall("kernel32.dll", "int", "GlobalUnlock", "long", $HGLOBAL)
    If @error Then Return SetError(8, 8, False)
    $VDLLCALLTMP = DllCall("kernel32.dll", "int", "GetLastError")
    If $VDLLCALLTMP = 0 Then Return SetError(8, 9, False)
    Return True
EndFunc


Func _Iif($FTEST, $VTRUEVAL, $VFALSEVAL)
    If $FTEST Then
        Return $VTRUEVAL
    Else
        Return $VFALSEVAL
    EndIf
EndFunc


Func _MouseTrap($ILEFT = 0, $ITOP = 0, $IRIGHT = 0, $IBOTTOM = 0)
    Local $IRESULT, $TRECT
    If @NumParams == 0 Then
        $IRESULT = DllCall("user32.dll", "int", "ClipCursor", "int", 0)
    Else
        If @NumParams == 2 Then
            $IRIGHT = $ILEFT + 1
            $IBOTTOM = $ITOP + 1
        EndIf
        $TRECT = DllStructCreate($TAGRECT)
        If @error Then Return 0
        DllStructSetData($TRECT, "Left", $ILEFT)
        DllStructSetData($TRECT, "Top", $ITOP)
        DllStructSetData($TRECT, "Right", $IRIGHT)
        DllStructSetData($TRECT, "Bottom", $IBOTTOM)
        $IRESULT = DllCall("user32.dll", "int", "ClipCursor", "ptr", DllStructGetPtr($TRECT))
    EndIf
    Return $IRESULT[0] <> 0
EndFunc


Func _Singleton($SOCCURENCENAME, $IFLAG = 0)
    Local Const $ERROR_ALREADY_EXISTS = 183
    Local Const $SECURITY_DESCRIPTOR_REVISION = 1
    Local $HANDLE, $LASTERROR, $PSECURITYATTRIBUTES = 0
    If BitAND($IFLAG, 2) Then
        Local $STRUCTSECURITYDESCRIPTOR = DllStructCreate("dword[5]")
        Local $PSECURITYDESCRIPTOR = DllStructGetPtr($STRUCTSECURITYDESCRIPTOR)
        Local $ARET = DllCall("advapi32.dll", "int", "InitializeSecurityDescriptor", "ptr", $PSECURITYDESCRIPTOR, "dword", $SECURITY_DESCRIPTOR_REVISION)
        If Not @error And $ARET[0] Then
            $ARET = DllCall("advapi32.dll", "int", "SetSecurityDescriptorDacl", "ptr", $PSECURITYDESCRIPTOR, "int", 1, "ptr", 0, "int", 0)
            If Not @error And $ARET[0] Then
                Local $STRUCTSECURITYATTRIBUTES = DllStructCreate("dword;ptr;int")
                DllStructSetData($STRUCTSECURITYATTRIBUTES, 1, DllStructGetSize($STRUCTSECURITYATTRIBUTES))
                DllStructSetData($STRUCTSECURITYATTRIBUTES, 2, $PSECURITYDESCRIPTOR)
                DllStructSetData($STRUCTSECURITYATTRIBUTES, 3, 0)
                $PSECURITYATTRIBUTES = DllStructGetPtr($STRUCTSECURITYATTRIBUTES)
            EndIf
        EndIf
    EndIf
    $HANDLE = DllCall("kernel32.dll", "int", "CreateMutex", "ptr", $PSECURITYATTRIBUTES, "long", 1, "str", $SOCCURENCENAME)
    $LASTERROR = DllCall("kernel32.dll", "int", "GetLastError")
    If $LASTERROR[0] = $ERROR_ALREADY_EXISTS Then
        If BitAND($IFLAG, 1) Then
            Return SetError($LASTERROR[0], $LASTERROR[0], 0)
        Else
            Exit -1
        EndIf
    EndIf
    Return $HANDLE[0]
EndFunc


Func _IsPressed($SHEXKEY, $VDLL = "user32.dll")
    Local $A_R = DllCall($VDLL, "int", "GetAsyncKeyState", "int", "0x" & $SHEXKEY)
    If Not @error And BitAND($A_R[0], 32768) = 32768 Then Return 1
    Return 0
EndFunc


Func _VersionCompare($SVERSION1, $SVERSION2)
    If $SVERSION1 = $SVERSION2 Then Return 0
    Local $SEP = "."
    If StringInStr($SVERSION1, $SEP) = 0 Then $SEP = ","
    Local $AVERSION1 = StringSplit($SVERSION1, $SEP)
    Local $AVERSION2 = StringSplit($SVERSION2, $SEP)
    If UBound($AVERSION1) <> UBound($AVERSION2) Or UBound($AVERSION1) = 0 Then
        SetExtended(1)
        If $SVERSION1 > $SVERSION2 Then
            Return 1
        ElseIf $SVERSION1 < $SVERSION2 Then
            Return -1
        EndIf
    Else
        For $I = 1 To UBound($AVERSION1) - 1
            If StringIsDigit($AVERSION1[$I]) And StringIsDigit($AVERSION2[$I]) Then
                If Number($AVERSION1[$I]) > Number($AVERSION2[$I]) Then
                    Return 1
                ElseIf Number($AVERSION1[$I]) < Number($AVERSION2[$I]) Then
                    Return -1
                EndIf
            Else
                SetExtended(1)
                If $AVERSION1[$I] > $AVERSION2[$I] Then
                    Return 1
                ElseIf $AVERSION1[$I] < $AVERSION2[$I] Then
                    Return -1
                EndIf
            EndIf
        Next
    EndIf
    SetError(2)
    Return 0
EndFunc


Func _MISC_GETDC($HWND)
    Local $ARESULT
    $ARESULT = DllCall("User32.dll", "hwnd", "GetDC", "hwnd", $HWND)
    If @error Then Return SetError(@error, 0, 0)
    Return $ARESULT[0]
EndFunc


Func _MISC_GETDEVICECAPS($HDC, $IINDEX)
    Local $ARESULT
    $ARESULT = DllCall("GDI32.dll", "int", "GetDeviceCaps", "hwnd", $HDC, "int", $IINDEX)
    Return $ARESULT[0]
EndFunc


Func _MISC_RELEASEDC($HWND, $HDC)
    Local $ARESULT
    $ARESULT = DllCall("User32.dll", "int", "ReleaseDC", "hwnd", $HWND, "hwnd", $HDC)
    Return $ARESULT[0] <> 0
EndFunc

HotKeySet("{F8}", "pauseset")
Global $PAUSE = -1
Global $UP = 0
Global $PAGE1 = 0
Global $PAGE2 = 0
Global $STR = 555
Global $STR2 = 555
Global $X = 66
Global $Y = 66
Global $CURRENT = 66
Global $FRIEND8 = 40
Global $NEW = 0
Global $LOOP = 0
Global $COORDINATES[2]
Global $COORDINATES2[2]
Global $CONPOS[4]
Sleep(1000)
TrayTip("  Original Maker facebook.com/ttwtsk  ", "version 1.6.3, Press F8 to pause", 20, 0)
Sleep(1000)
WinActivate("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม")
Sleep(1000)
Opt("MouseCoordMode", 0)
Opt("PixelCoordMode", 0)
Opt("MouseClickDelay", 0)
Opt("MouseClickDownDelay", 0)
$CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
If IsArray($CONPOS) Then
    POPUP()
    Sleep(1000)
    POPUP2()
    Sleep(500)
    POPUP4()
    POPUP5()
    While 1 < 3
        $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
        POPUP()
        Sleep(1000)
        POPUP2()
        Sleep(1000)
        While 2 < 3
            EMPTY1()
            ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
            Sleep(500)
            If $LOOP = 1 Then
                $LOOP = 0
                ExitLoop
            EndIf
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 85, 600)
            Sleep(5000)
            POPUP()
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 390, 460)
            Sleep(3000)
            POPUP2()
            FINDCOIN()
            PICKSIGN()
            POPUP()
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 460, 460)
            Sleep(2000)
            POPUP2()
            WAITNOUD()
            FINDCOIN()
            PICKSIGN()
            FINDFRUIT()
            POPUP()
            PREVENTSCREENSAVER()
            EMPTY2()
            ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
            Sleep(500)
            If $LOOP = 1 Then
                $LOOP = 0
                ExitLoop
            EndIf
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 140, 600)
            Sleep(5000)
            POPUP()
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 390, 460)
            Sleep(3000)
            POPUP2()
            FINDCOIN()
            PICKSIGN()
            POPUP()
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 460, 460)
            Sleep(2000)
            POPUP2()
            WAITNOUD()
            FINDCOIN()
            PICKSIGN()
            FINDFRUIT()
            FINDFRUIT()
            POPUP()
            PREVENTSCREENSAVER()
            EMPTY3()
            ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
            Sleep(500)
            If $LOOP = 1 Then
                $LOOP = 0
                ExitLoop
            EndIf
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 210, 600)
            Sleep(5000)
            POPUP()
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 390, 460)
            Sleep(3000)
            POPUP2()
            FINDCOIN()
            PICKSIGN()
            POPUP()
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 460, 460)
            Sleep(2000)
            POPUP2()
            WAITNOUD()
            FINDCOIN()
            PICKSIGN()
            FINDFRUIT()
            FINDFRUIT()
            POPUP()
            PREVENTSCREENSAVER()
            EMPTY4()
            ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
            Sleep(500)
            If $LOOP = 1 Then
                $LOOP = 0
                ExitLoop
            EndIf
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 270, 600)
            Sleep(5000)
            POPUP()
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 390, 460)
            Sleep(3000)
            POPUP2()
            FINDCOIN()
            PICKSIGN()
            POPUP()
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 460, 460)
            Sleep(2000)
            POPUP2()
            WAITNOUD()
            FINDCOIN()
            PICKSIGN()
            FINDFRUIT()
            FINDFRUIT()
            POPUP()
            PREVENTSCREENSAVER()
            EMPTY5()
            ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
            Sleep(500)
            If $LOOP = 1 Then
                $LOOP = 0
                ExitLoop
            EndIf
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 330, 600)
            Sleep(5000)
            POPUP()
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 390, 460)
            Sleep(3000)
            POPUP2()
            FINDCOIN()
            PICKSIGN()
            POPUP()
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 460, 460)
            Sleep(2000)
            POPUP2()
            WAITNOUD()
            FINDCOIN()
            PICKSIGN()
            FINDFRUIT()
            FINDFRUIT()
            POPUP()
            PREVENTSCREENSAVER()
            EMPTY6()
            ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
            Sleep(500)
            If $LOOP = 1 Then
                $LOOP = 0
                ExitLoop
            EndIf
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 390, 600)
            Sleep(5000)
            POPUP()
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 390, 460)
            Sleep(3000)
            POPUP2()
            FINDCOIN()
            PICKSIGN()
            POPUP()
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 460, 460)
            Sleep(2000)
            POPUP2()
            WAITNOUD()
            FINDCOIN()
            PICKSIGN()
            FINDFRUIT()
            FINDFRUIT()
            POPUP()
            PREVENTSCREENSAVER()
            EMPTY7()
            ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
            Sleep(500)
            If $LOOP = 1 Then
                $LOOP = 0
                ExitLoop
            EndIf
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 450, 600)
            Sleep(5000)
            POPUP()
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 390, 460)
            Sleep(3000)
            POPUP2()
            FINDCOIN()
            PICKSIGN()
            POPUP()
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 460, 460)
            Sleep(2000)
            POPUP2()
            WAITNOUD()
            FINDCOIN()
            PICKSIGN()
            FINDFRUIT()
            FINDFRUIT()
            POPUP()
            PREVENTSCREENSAVER()
            EMPTY8()
            ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
            Sleep(500)
            If $LOOP = 1 Then
                $LOOP = 0
                ExitLoop
            EndIf
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 520, 600)
            Sleep(5000)
            POPUP()
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 390, 460)
            Sleep(3000)
            POPUP2()
            FINDCOIN()
            PICKSIGN()
            POPUP()
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 370, 550)
            Sleep(1000)
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 460, 460)
            Sleep(2000)
            POPUP2()
            WAITNOUD()
            FINDCOIN()
            PICKSIGN()
            FINDFRUIT()
            FINDFRUIT()
            POPUP()
            PREVENTSCREENSAVER()
            Sleep(500)
            CHANGEPAGE()
            Sleep(1500)
        WEnd
    WEnd
Else
    MsgBox(0, "Error!!! 555+++", "Please open FIREFOX (3.6) then go to page http://apps.facebook.com/cutepigth/ ,Minimize and run bot again ^ ^")
EndIf

Func FINDCOIN()
    While 1 < 3
        ToolTip("Picking G-Coin(s)", 10, 10, "", 1)
        Sleep(100)
        POPUP()
        POPUP2()
        $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
        $COORDINATES = PixelSearch(110 + $CONPOS[0], 265 + $CONPOS[1], 616 + $CONPOS[0], 545 + $CONPOS[1], 14853191, "", "", WinGetHandle("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม"))
        If IsArray($COORDINATES) Then
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, $COORDINATES[0] - $CONPOS[0], $COORDINATES[1] - $CONPOS[1] - 24)
            Sleep(1000)
            POPUP()
            POPUP2()
        Else
            Sleep(1000)
            ToolTip("", 10, 10, "", 1)
            POPUP()
            POPUP2()
            ExitLoop
        EndIf
    WEnd
EndFunc


Func PICKSIGN()
    ToolTip("Picking Sign", 10, 10, "", 1)
    Sleep(100)
    POPUP()
    POPUP2()
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 622, 431)
    Sleep(1000)
    POPUP()
    POPUP2()
EndFunc


Func FINDFRUIT()
    ToolTip("Picking yellowfruit", 10, 10, "", 1)
    Sleep(100)
    POPUP()
    POPUP2()
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    $COORDINATES = PixelSearch(110 + $CONPOS[0], 265 + $CONPOS[1], 616 + $CONPOS[0], 545 + $CONPOS[1], 15048734, "", "", WinGetHandle("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม"))
    If IsArray($COORDINATES) Then
        ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, $COORDINATES[0] - $CONPOS[0], $COORDINATES[1] - $CONPOS[1] - 24)
        Sleep(1000)
        POPUP()
    Else
        Sleep(1000)
        ToolTip("", 10, 10, "", 1)
        POPUP()
    EndIf
    ToolTip("Picking grape", 10, 10, "", 1)
    Sleep(100)
    POPUP()
    POPUP2()
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    $COORDINATES = PixelSearch(110 + $CONPOS[0], 265 + $CONPOS[1], 616 + $CONPOS[0], 545 + $CONPOS[1], 8282531, "", "", WinGetHandle("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม"))
    If IsArray($COORDINATES) Then
        ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, $COORDINATES[0] - $CONPOS[0], $COORDINATES[1] - $CONPOS[1] - 24)
        Sleep(1000)
        POPUP()
    Else
        Sleep(100)
        ToolTip("", 10, 10, "", 1)
        POPUP()
    EndIf
    ToolTip("Picking cherry", 10, 10, "", 1)
    Sleep(100)
    POPUP()
    POPUP2()
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    $COORDINATES = PixelSearch(110 + $CONPOS[0], 265 + $CONPOS[1], 616 + $CONPOS[0], 545 + $CONPOS[1], 14090270, "", "", WinGetHandle("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม"))
    If IsArray($COORDINATES) Then
        ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, $COORDINATES[0] - $CONPOS[0], $COORDINATES[1] - $CONPOS[1] - 24)
        Sleep(1000)
        POPUP()
    Else
        Sleep(100)
        ToolTip("", 10, 10, "", 1)
        POPUP()
    EndIf
    ToolTip("Picking Straw.", 10, 10, "", 1)
    Sleep(100)
    POPUP2()
    POPUP()
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    $COORDINATES = PixelSearch(110 + $CONPOS[0], 265 + $CONPOS[1], 616 + $CONPOS[0], 545 + $CONPOS[1], 14090270, "", "", WinGetHandle("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม"))
    If IsArray($COORDINATES) Then
        ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, $COORDINATES[0] - $CONPOS[0], $COORDINATES[1] - $CONPOS[1] - 24)
        Sleep(1000)
        POPUP()
    Else
        Sleep(100)
        ToolTip("", 10, 10, "", 1)
        POPUP()
    EndIf
    POPUP4()
    POPUP5()
EndFunc


Func WAITNOUD()
    ToolTip("waiting . . .", 10, 10, "", 1)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    If PixelGetColor(510 + $CONPOS[0], 215 + $CONPOS[1]) = 15589573 Then
        $PAGE1 = PixelGetColor(510 + $CONPOS[0], 215 + $CONPOS[1])
        Sleep(1000)
        $PAGE2 = PixelGetColor(510 + $CONPOS[0], 215 + $CONPOS[1])
        While $PAGE2 = $PAGE1
            Sleep(1000)
            ToolTip($NEW, 10, 10, "sec. waiting . . .", 1)
            $NEW = $NEW + 1
            If $NEW >= 18 Then
                $NEW = 1
                ExitLoop
            EndIf
            $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
            $PAGE2 = PixelGetColor(510 + $CONPOS[0], 215 + $CONPOS[1])
        WEnd
    EndIf
EndFunc


Func POPUP()
    ToolTip("Closing pop-up 1", 10, 10, "", 1)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    If PixelGetColor(624 + $CONPOS[0], 90 + $CONPOS[1]) = 12666680 Then
        $PAGE1 = PixelGetColor(624 + $CONPOS[0], 90 + $CONPOS[1])
        Sleep(300)
        ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 3, 624, 90)
        Sleep(500)
        $PAGE2 = PixelGetColor(624 + $CONPOS[0], 90 + $CONPOS[1])
        While $PAGE2 = $PAGE1
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 3, 624, 90)
            Sleep(500)
            $PAGE2 = PixelGetColor(624 + $CONPOS[0], 90 + $CONPOS[1])
            Sleep(300)
        WEnd
    EndIf
    ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
EndFunc


Func POPUP2()
    ToolTip("Closing pop-up 2", 10, 10, "", 1)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    If PixelGetColor(390 + $CONPOS[0], 265 + $CONPOS[1]) = 16776158 Then
        $PAGE1 = PixelGetColor(390 + $CONPOS[0], 265 + $CONPOS[1])
        Sleep(300)
        ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 380, 310)
        Sleep(500)
        $PAGE2 = PixelGetColor(390 + $CONPOS[0], 265 + $CONPOS[1])
        While $PAGE2 = $PAGE1
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 380, 310)
            Sleep(500)
            $PAGE2 = PixelGetColor(390 + $CONPOS[0], 265 + $CONPOS[1])
        WEnd
    EndIf
    ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
EndFunc


Func POPUP3()
    ToolTip("Closing pop-up 3", 10, 10, "", 1)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    If PixelGetColor(389 + $CONPOS[0], 417 + $CONPOS[1]) = 6803250 Then
        $PAGE1 = PixelGetColor(389 + $CONPOS[0], 427 + $CONPOS[1])
        Sleep(300)
        ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 389, 427)
        Sleep(500)
        $PAGE2 = PixelGetColor(389 + $CONPOS[0], 427 + $CONPOS[1])
        While $PAGE2 = $PAGE1
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 389, 427)
            Sleep(500)
            $PAGE2 = PixelGetColor(389 + $CONPOS[0], 427 + $CONPOS[1])
        WEnd
    EndIf
    ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
EndFunc


Func POPUP4()
    ToolTip("Closing pop-up 4 !!", 10, 10, "", 1)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    If PixelGetColor(336 + $CONPOS[0], 247 + $CONPOS[1]) = 16776157 Then
        $PAGE1 = PixelGetColor(336 + $CONPOS[0], 247 + $CONPOS[1])
        Sleep(300)
        ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 393, 404)
        Sleep(500)
        $PAGE2 = PixelGetColor(336 + $CONPOS[0], 247 + $CONPOS[1])
        While $PAGE2 = $PAGE1
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 393, 404)
            Sleep(500)
            $PAGE2 = PixelGetColor(336 + $CONPOS[0], 247 + $CONPOS[1])
        WEnd
    EndIf
    ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
EndFunc


Func POPUP5()
    ToolTip("Closing pop-up 5 !!!!!", 10, 10, "", 1)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    If PixelGetColor(400 + $CONPOS[0], 390 + $CONPOS[1]) = 16764057 Then
        $PAGE1 = PixelGetColor(400 + $CONPOS[0], 390 + $CONPOS[1])
        Sleep(300)
        ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 601, 27)
        Sleep(500)
        $PAGE2 = PixelGetColor(400 + $CONPOS[0], 390 + $CONPOS[1])
        While $PAGE2 = $PAGE1
            ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 600, 28)
            Sleep(500)
            $PAGE2 = PixelGetColor(400 + $CONPOS[0], 390 + $CONPOS[1])
        WEnd
    EndIf
    ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 601, 27)
    ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
EndFunc


Func CHANGEPAGE()
    ToolTip("Changing Page", 10, 10, "", 1)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    $PAGE1 = PixelGetColor(100 + $CONPOS[0], 610 + $CONPOS[1])
    Sleep(1000)
    ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 694, 639)
    Sleep(1000)
    $PAGE2 = PixelGetColor(100 + $CONPOS[0], 610 + $CONPOS[1])
    While $PAGE2 = $PAGE1
        POPUP()
        POPUP2()
        ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 694, 639)
        Sleep(1000)
        $PAGE2 = PixelGetColor(100 + $CONPOS[0], 610 + $CONPOS[1])
    WEnd
    ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
EndFunc


Func LOOPPAGE()
    ToolTip("Returning to First page", 10, 10, "", 1)
    ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 638, 643)
    Sleep(1000)
    POPUP()
    POPUP2()
    ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 638, 643)
    Sleep(2000)
    FEED()
    ToolTip("Auto-Click Working . . .", 10, 10, "", 1)
EndFunc


Func FEED()
    ToolTip("Feed MY pigs + Find G-coin(s) ", 10, 10, "", 1)
    POPUP()
    POPUP2()
    POPUP3()
    POPUP4()
    POPUP5()
    ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 46, 29)
    Sleep(3000)
    ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 2, 45, 550)
    Sleep(2000)
    ControlClick("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]", "left", 1, 60, 460)
    Sleep(2000)
    POPUP2()
    FINDCOIN()
    POPUP()
    POPUP3()
    Sleep(1000)
    POPUP()
    POPUP3()
    FINDCOIN()
    POPUP()
    POPUP3()
    POPUP4()
    POPUP5()
    PREVENTSCREENSAVER()
EndFunc


Func EMPTY1()
    Sleep(2000)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    Sleep(1000)
    If PixelGetColor(70 + $CONPOS[0], 640 + $CONPOS[1]) = 15789019 Then
        $LOOP = 1
        LOOPPAGE()
    EndIf
EndFunc


Func EMPTY2()
    Sleep(100)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    If PixelGetColor(132 + $CONPOS[0], 640 + $CONPOS[1]) = 15789019 Then
        $LOOP = 1
        LOOPPAGE()
    EndIf
EndFunc


Func EMPTY3()
    Sleep(100)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    If PixelGetColor(194 + $CONPOS[0], 640 + $CONPOS[1]) = 15789019 Then
        $LOOP = 1
        LOOPPAGE()
    EndIf
EndFunc


Func EMPTY4()
    Sleep(100)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    If PixelGetColor(256 + $CONPOS[0], 640 + $CONPOS[1]) = 15789019 Then
        $LOOP = 1
        LOOPPAGE()
    EndIf
EndFunc


Func EMPTY5()
    Sleep(100)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    If PixelGetColor(318 + $CONPOS[0], 640 + $CONPOS[1]) = 15789019 Then
        $LOOP = 1
        LOOPPAGE()
    EndIf
EndFunc


Func EMPTY6()
    Sleep(100)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    If PixelGetColor(380 + $CONPOS[0], 640 + $CONPOS[1]) = 15789019 Then
        $LOOP = 1
        LOOPPAGE()
    EndIf
EndFunc


Func EMPTY7()
    Sleep(100)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    If PixelGetColor(442 + $CONPOS[0], 640 + $CONPOS[1]) = 15789019 Then
        $LOOP = 1
        LOOPPAGE()
    EndIf
EndFunc


Func EMPTY8()
    Sleep(100)
    $CONPOS = ControlGetPos("à¹à¸®à¸›à¸›à¸µà¹‰à¸„นเลี้ยงหม", "", "[CLASS:GeckoPluginWindow; INSTANCE:1]")
    If PixelGetColor(504 + $CONPOS[0], 640 + $CONPOS[1]) = 15789019 Then
        $LOOP = 1
        LOOPPAGE()
    EndIf
EndFunc


Func PAUSESET()
    $PAUSE = $PAUSE * - 1
    If $PAUSE = -1 Then ToolTip("script PAUSE, Press F8 to UNPAUSE", 10, 10, "", 1)
    While $PAUSE = -1
        Sleep(500)
        If $PAUSE = 1 Then ToolTip("", 10, 10, "", 1)
    WEnd
EndFunc


Func PREVENTSCREENSAVER()
    $X = MouseGetPos(0)
    $CURRENT = MouseGetPos(0)
    If $CURRENT = $X Then
        $Y = MouseGetPos(1)
        MouseMove($CURRENT + 20, $Y, 5)
        MouseMove($X, $Y, 5)
    EndIf
EndFunc
Edited by Jos
put in codebox

Share this post


Link to post
Share on other sites



sorry jos

Share this post


Link to post
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
Sign in to follow this  
Followers 0