#AutoIt3Wrapper_Compile_Both=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <MsgBoxConstants.au3>
#include <AutoItConstants.au3>
#include <GDIPlus.au3>
#include <Timers.au3>
;~ #include <ScreenCapture.au3>
#Region ### START Koda GUI section ### Form=c:\users\administrator\desktop\growstone\form1.kxf
$Form1_1 = GUICreate("auto ghep da", 300, 120, 192, 124)
$Button2 = GUICtrlCreateButton("Move", 9, 85, 43, 30)
$Input[00] = GUICtrlCreateLabel("", 8, 8, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[01] = GUICtrlCreateLabel("", 32, 8, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[02] = GUICtrlCreateLabel("", 56, 8, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[03] = GUICtrlCreateLabel("", 80, 8, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[04] = GUICtrlCreateLabel("", 104, 8, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[05] = GUICtrlCreateLabel("", 128, 8, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[06] = GUICtrlCreateLabel("", 152, 8, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[07] = GUICtrlCreateLabel("", 176, 8, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[10] = GUICtrlCreateLabel("", 8, 32, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[11] = GUICtrlCreateLabel("", 32, 32, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[12] = GUICtrlCreateLabel("", 56, 32, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[13] = GUICtrlCreateLabel("", 80, 32, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[14] = GUICtrlCreateLabel("", 104, 32, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[15] = GUICtrlCreateLabel("", 128, 32, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[16] = GUICtrlCreateLabel("", 152, 32, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[17] = GUICtrlCreateLabel("", 176, 32, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[20] = GUICtrlCreateLabel("", 8, 56, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[21] = GUICtrlCreateLabel("", 32, 56, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[22] = GUICtrlCreateLabel("", 56, 56, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[23] = GUICtrlCreateLabel("", 80, 56, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[24] = GUICtrlCreateLabel("", 104, 56, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[25] = GUICtrlCreateLabel("", 128, 56, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[26] = GUICtrlCreateLabel("", 152, 56, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Input[27] = GUICtrlCreateLabel("", 176, 56, 20, 21, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Label1 = GUICtrlCreateLabel("", 208, 8, 36, 17, $WS_BORDER)
$Label2 = GUICtrlCreateLabel("", 254, 8, 36, 17, $WS_BORDER)
$Label3 = GUICtrlCreateLabel("", 208, 24, 36, 17, $WS_BORDER)
$Label4 = GUICtrlCreateLabel("", 254, 24, 36, 17, $WS_BORDER)
$idCheckbox = GUICtrlCreateCheckbox("Lock", 240, 72, 49, 17)
$Label6 = GUICtrlCreateLabel("Rare MAX ", 208, 45, 80, 20, BitOR($SS_CENTER,$SS_CENTERIMAGE,$WS_BORDER))
$Label7 = GUICtrlCreateLabel("0", 197, 96, 15, 17)
$Label8 = GUICtrlCreateLabel("", 250,100, 50, 20, BitOR($SS_RIGHT,$SS_CENTERIMAGE))
GUICtrlSetFont(-1, 10, 800, 0, "SimSun")
GUICtrlSetColor(-1, 0x0000FF)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
HotKeySet("^q",'dung')
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button2
move()
Case $Button1
move()
Sleep(150)
MouseClick('left',495, 495,1,3) ;click button -
PixelSearch(85, 618,130, 639,0x444444); check auto attack
If Not @error Then ControlClick(WinGetTitle("[CLASS:Qt5QWindowIcon]"),'','','left',1,102, 628)
PixelSearch(85, 618,130, 639,0xFCBC50); check auto attack2
If Not @error Then ControlClick(WinGetTitle("[CLASS:Qt5QWindowIcon]"),'','','left',2,102, 628)
MouseClick('left',494, 703,1,3) ;click button +
Sleep(100)
loop()
WEnd
While 1
Local $hStarttime = _Timer_Init()
If Not @error Then ControlClick($title,'','','left',1,480, 80) ;click button X
If $nMsg = $Button1 Then
$Abort = MsgBox(36, "Stop?", "Are you sure you want to Stop?")
If $Abort = 6 Then
GUICtrlSetData($Button1,"RUN | Ctrl+Q= exit")
ExitLoop
Return
EndIf
EndIf
$hBitmap = Capture_Window($title, 469, 691)
;~ For $i2=0 to 7
;~ GUICtrlSetData($Input[$i1&$i2],'')
;~ Next
;~ Next
lv2(2,0x676767,0x9f9f9f,0xe4e4e4,0xffffff)
lv3(3,0x525252,0x676767,0x9f9f9f,0x3c3c3c)
lv4(4,0x291e27,0x443c48,0x443c48,0x291e27)
lv5(5,0x8F4526,0x8F4526,0x8F4526,0x8F4526)
lv6(6,0xFFFFFF,0xFFFFFF,0xFFFFFF,0xFFFFFF)
lv7(7,0xC66518,0xC66518,0xC66518,0xC66518)
lv8(8,0x246148,0x246148,0x122E22,0x327443)
lv9(9,0x6ABE30,0x6ABE30,0x6ABE30,0x6ABE30)
lv10(10,0x45F8FF,0x45F8FF,0xFFFFFF,0x0FB0FD)
lv11(11,0x6D2E0B,0xD9A066,0xF48E61,0x8F4526)
lv12(12,0xA85C3C,0x6D2E0B,0x6D2E0B,0xA85C3C)
lv13(13,0x9F9F9F,0x5A5A5A,0x5A5A5A,0x9F9F9F)
lv14(14,0xE39629,0xE39629,0xFBF236,0xE39629)
lv15(15,0xDD9500,0xFBF236,0xFBF236,0xDD9500)
lv16(16,0xFBF236,0xFFFFFF,0xFFFFFF,0xFBF236)
lv17(17,0xFFFFFF,0xFBF236,0xFFFFFF,0xFFFFFF)
lv18(18,0xA4C6D3,0xA4C6D3,0xFFFFFF,0xC6DCE0)
lv19(19,0x0fb0fd,0x0fb0fd,0xffffff,0x45f8ff)
lv20(20,0x16a5f6,0x256ae9,0xffffff,0x256ae9)
lv21(21,0xfbf236,0xfbf236,0xffffff,0xf8a834)
lv22(22,0xffffff,0xffffff,0xea6b33,0xea6b33)
lv23(23,0xffffff,0xffffff,0xc6dce0,0xc6dce0)
lv24(24,0x488868,0x488868,0xeec39a,0x488868)
check1()
lv0 (0,0x947850,0x947850,0xB09468,0x947850)
lv00(0,0x68ba46,0x68ba46,0x77c852,0x68ba46)
Else
if GUICtrlRead($Label7)<1 then GUICtrlSetData($Input25,GUICtrlRead($Input25)+1)
EndIf
; save IMAGE
;~ _GDIPlus_ImageSaveToFile($hBitmap, @ScriptDir & "AutoItVN.jpg")
;~ _GDIPlus_BitmapDispose($hBitmap)
;~ ShellExecute(@ScriptDir & "AutoItVN.jpg")
_GDIPlus_Shutdown()
GUICtrlSetData($Label8,Ceiling(_Timer_Diff($hStarttime))&' MS') ; check time mouse click DRAG
EndFunc
func check1()
For $i1=0 to 2
For $i2=0 to 7
If GUICtrlRead($Input[$i1&$i2]) = $i Then
GUICtrlSetData($Input[$i1&$i2],'')
GUICtrlSetData($Label1,Abs(50+($i2*56)))
GUICtrlSetData($Label2,Abs(550+($i1*56)))
ExitLoop(2)
EndIf
Next
Next
For $i2=7 to 0 Step -1
If GUICtrlRead($Input[$i1&$i2]) = $i Then
GUICtrlSetData($Input[$i1&$i2],'')
GUICtrlSetData($Label3,Abs(50+($i2*56)))
GUICtrlSetData($Label4,Abs(550+($i1*56)))
ExitLoop(2)
EndIf
Next
Next
if GUICtrlRead($Label2)<>'' and GUICtrlRead($Label4)<>'' then
if GUICtrlRead($Label1)<> GUICtrlRead($Label3) then
Sleep(150)
EndIf
EndIf
GUICtrlSetData($Label2,'')
GUICtrlSetData($Label3,'')
GUICtrlSetData($Label4,'')
EndFunc
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,40+($i2*56), 550+($i1*56))
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,65+($i2*56), 550+($i1*56))
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 540+($i1*56))
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 565+($i1*56))
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
GUICtrlSetData($Label7,GUICtrlRead($Label7)+1)
EndIf
Next
EndFunc
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,40+($i2*56), 550+($i1*56))
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,65+($i2*56), 550+($i1*56))
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 540+($i1*56))
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 565+($i1*56))
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
GUICtrlSetData($Label7,GUICtrlRead($Label7)+1)
EndIf
Next
EndFunc
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,35+($i2*56), 550+($i1*56)) ; trai ;0x69382f
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,60+($i2*56), 555+($i1*56)) ; phai ;0x894d47
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,45+($i2*56), 540+($i1*56)) ; tren ;0xce6c5e
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 560+($i1*56)) ; duoi ;0x4f2726
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,35+($i2*56), 550+($i1*56)) ; trai ;0x676767
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,63+($i2*56), 552+($i1*56)) ; phai ;0x9f9f9f
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 544+($i1*56)) ; tren ;0xe4e4e4
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,45+($i2*56), 550+($i1*56)) ; duoi ;0xffffff
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,35+($i2*56), 550+($i1*56)) ; trai ;0x525252
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,60+($i2*56), 555+($i1*56)) ; phai ;0x676767
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,45+($i2*56), 540+($i1*56)) ; tren ;0x9f9f9f
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 560+($i1*56)) ; duoi ;0x3c3c3c
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,35+($i2*56), 550+($i1*56)) ; trai ;0x291e27
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,65+($i2*56), 550+($i1*56)) ; phai ;0x443c48
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,45+($i2*56), 535+($i1*56)) ; tren ;0x443c48
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,45+($i2*56), 565+($i1*56)) ; duoi ;0x291e27
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,40+($i2*56), 553+($i1*56)) ; trai
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,58+($i2*56), 547+($i1*56)) ; phai
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,47+($i2*56), 540+($i1*56)) ; tren
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 560+($i1*56)) ; duoi
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,40+($i2*56), 550+($i1*56))
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,57+($i2*56), 550+($i1*56))
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,49+($i2*56), 541+($i1*56))
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,49+($i2*56), 559+($i1*56))
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,40+($i2*56), 550+($i1*56)) ; trai
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,57+($i2*56), 550+($i1*56)) ; phai
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,49+($i2*56), 541+($i1*56)) ; tren
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,49+($i2*56), 560+($i1*56)) ; duoi
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,40+($i2*56), 548+($i1*56)) ; trai
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,57+($i2*56), 548+($i1*56)) ; phai
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,49+($i2*56), 541+($i1*56)) ; tren
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,49+($i2*56), 560+($i1*56)) ; duoi
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,37+($i2*56), 550+($i1*56)) ; trai
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,60+($i2*56), 550+($i1*56)) ; phai
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 538+($i1*56)) ; tren
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 562+($i1*56)) ; duoi
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,39+($i2*56), 545+($i1*56)) ; trai
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,60+($i2*56), 545+($i1*56)) ; phai
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 538+($i1*56)) ; tren
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 560+($i1*56)) ; duoi
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,36+($i2*56), 545+($i1*56)) ; trai
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,62+($i2*56), 561+($i1*56)) ; phai
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 538+($i1*56)) ; tren
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 560+($i1*56)) ; duoi
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,42+($i2*56), 549+($i1*56)) ; trai
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,46+($i2*56), 542+($i1*56)) ; phai
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,47+($i2*56), 543+($i1*56)) ; tren
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,52+($i2*56), 559+($i1*56)) ; duoi
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,42+($i2*56), 549+($i1*56)) ; trai
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,46+($i2*56), 542+($i1*56)) ; phai
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,47+($i2*56), 543+($i1*56)) ; tren
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,52+($i2*56), 559+($i1*56)) ; duoi
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
EndFunc
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,39+($i2*56), 550+($i1*56)) ; trai
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,57+($i2*56), 547+($i1*56)) ; phai
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,51+($i2*56), 542+($i1*56)) ; tren
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,57+($i2*56), 560+($i1*56)) ; duoi
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
EndFunc
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,35+($i2*56), 561+($i1*56)) ; trai
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,65+($i2*56), 550+($i1*56)) ; phai
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,61+($i2*56), 537+($i1*56)) ; tren
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,45+($i2*56), 566+($i1*56)) ; duoi
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
EndFunc
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,41+($i2*56), 546+($i1*56)) ; trai
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 547+($i1*56)) ; phai
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,53+($i2*56), 534+($i1*56)) ; tren
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,47+($i2*56), 562+($i1*56)) ; duoi
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
EndFunc
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,60+($i2*56), 550+($i1*56)) ; trai
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,38+($i2*56), 548+($i1*56)) ; phai
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 533+($i1*56)) ; tren
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,60+($i2*56), 560+($i1*56)) ; duoi
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
EndFunc
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,35+($i2*56), 555+($i1*56)) ; trai
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,60+($i2*56), 553+($i1*56)) ; phai
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 540+($i1*56)) ; tren
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 564+($i1*56)) ; duoi
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
EndFunc
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,45+($i2*56), 550+($i1*56)) ; trai ;0x0fb0fd
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,63+($i2*56), 550+($i1*56)) ; phai ;0x0fb0fd
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,50+($i2*56), 547+($i1*56)) ; tren ;0xffffff
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,49+($i2*56), 557+($i1*56)) ; duoi ;0x45f8ff
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
EndFunc
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,43+($i2*56), 550+($i1*56)) ; trai ;0x16a5f6
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,52+($i2*56), 554+($i1*56)) ; phai ;0x256ae9
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,65+($i2*56), 540+($i1*56)) ; tren ;0xffffff
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,33+($i2*56), 563+($i1*56)) ; duoi ;0x256ae9
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
EndFunc
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,37+($i2*56), 557+($i1*56)) ; trai ;0xfbf236
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,60+($i2*56), 555+($i1*56)) ; phai ;0xfbf236
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,47+($i2*56), 548+($i1*56)) ; tren ;0xffffff
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,51+($i2*56), 569+($i1*56)) ; duoi ;0xf8a834
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
EndFunc
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,34+($i2*56), 546+($i1*56)) ; trai ;0xffffff
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,60+($i2*56), 541+($i1*56)) ; phai ;0xffffff
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,43+($i2*56), 548+($i1*56)) ; tren ;0xea6b33
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,52+($i2*56), 548+($i1*56)) ; duoi ;0xea6b33
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
EndFunc
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,35+($i2*56), 550+($i1*56)) ; trai ;0xffffff
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,65+($i2*56), 544+($i1*56)) ; phai ;0xffffff
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,41+($i2*56), 552+($i1*56)) ; tren ;0xc6dce0
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,56+($i2*56), 549+($i1*56)) ; duoi ;0xc6dce0
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
EndFunc
For $i1=0 to 2
For $i2=0 to 7
$Color1 = _GDIPlus_BitmapGetPixel($hBitmap,27+($i2*56), 564+($i1*56)) ; trai ;488868
$Color2 = _GDIPlus_BitmapGetPixel($hBitmap,71+($i2*56), 556+($i1*56)) ; phai ;488868
$Color3 = _GDIPlus_BitmapGetPixel($hBitmap,53+($i2*56), 535+($i1*56)) ; tren ;eec39a
$Color4 = _GDIPlus_BitmapGetPixel($hBitmap,43+($i2*56), 549+($i1*56)) ; duoi ;488868
If '0x'&Hex($Color1,6) = $icolor1 and '0x'&Hex($Color2,6) =$icolor2 and '0x'&Hex($Color3,6) =$icolor3 and '0x'&Hex($Color4,6) =$icolor4 Then
GUICtrlSetData($Input[$i1&$i2],$lv)
EndIf
Next
Next
EndFunc
Func Capture_Window($hWnd, $w, $h)
Local $hDC_Capture = _WinAPI_GetWindowDC($hWnd)
Local $hMemDC = _WinAPI_CreateCompatibleDC($hDC_Capture)
Local $hHBitmap = _WinAPI_CreateCompatibleBitmap($hDC_Capture, $w, $h)
Local $hObjectx = _WinAPI_SelectObject($hMemDC, $hHBitmap)
DllCall("user32.dll", "int", "PrintWindow", "hwnd", $hWnd, "handle", $hMemDC, "int", 0)
_WinAPI_DeleteDC($hMemDC)
Local $hObject = _WinAPI_SelectObject($hMemDC, $hObjectx)
_WinAPI_ReleaseDC($hWnd, $hDC_Capture)
Local $hBmp = _GDIPlus_BitmapCreateFromHBITMAP($hHBitmap)
_WinAPI_DeleteObject($hHBitmap)
Return $hBmp
EndFunc ;==>Capture_Window
WinMove(WinGetTitle(("[CLASS:Qt5QWindowIcon]")),'',0,0,541, 748)
MouseMove(0,0,1)
MouseDown("left")
MouseMove(20,20,5)
MouseMove(0,0,1)
MouseUp("left")
EndFunc
Func dung()
Exit
EndFunc
Return BitAND(GUICtrlRead($idControlID), $GUI_CHECKED) = $GUI_CHECKED
EndFunc ;==>_IsChecked