Jump to content
Sign in to follow this  
leex2912

Help how to detect this claim button

Recommended Posts

Help how to detect this claim button

2019-08-11_06_55_24.thumb.png.fde56e74327e284464954003f89b5bd5.png

Func DailyChallengesSector($sAction = "", $bClick = True, $iDelay = 250)
	Local $offColors0[2][3] = [[0xD11225, 1, 0], [0xD11225, 2, 0]]
	Local $offColors1[2][3] = [[0xD80818, 1, 0], [0xD80818, 2, 0]]
	Local $offColors2[4][3] = [[0x6A9E3A, 1, 0], [0x4A6929, 2, 0], [0x1A1A1A, 3, 0], [0x1A1A1A, 3, 1]]
	Local $offColors3[3][3] = [[0x131313, 144, 0], [0xFFFFFF, 54, 17], [0xDAF77D, 54, 10]]

	Switch $sAction
	Case "Open"
		For $i = 0 To 3
		If _MultiPixelSearch3(157, 663, 178, 683, 1, 1, Hex(0xD11225, 6), $offColors0, 40) <> 0 Then
			If $bClick Then PureClick($g_iMultiPixelOffSet[0] - 20, $g_iMultiPixelOffSet[1] + 20, 1, 0)
			SetDebugLog($g_iMultiPixelOffSet[0] & "|" & $g_iMultiPixelOffSet[1])
			Return True
		EndIf
		If _Sleep($iDelay) Then Return
		Next
	Case "Check"
		For $i = 0 To 3
		If _MultiPixelSearch3(530, 45, 563, 75, 1, 1, Hex(0xD80818, 6), $offColors1, 40) <> 0 Then
			If $bClick Then PureClick($g_iMultiPixelOffSet[0] - 20, $g_iMultiPixelOffSet[1] + 10, 1, 0)
			SetDebugLog($g_iMultiPixelOffSet[0] & "|" & $g_iMultiPixelOffSet[1])
			Return True
		EndIf
		If _Sleep($iDelay) Then Return
		Next
	Case "Button"
		For $i = 0 To 3
		If _MultiPixelSearch3(22, 550, 838, 600, 1, 1, Hex(0x97DF47, 6), $offColors2, 20) <> 0 Then
			If $bClick Then PureClick($g_iMultiPixelOffSet[0] - 15, $g_iMultiPixelOffSet[1], 1, 0)
			SetDebugLog($g_iMultiPixelOffSet[0] & "|" & $g_iMultiPixelOffSet[1])
			Return True
		EndIf
		If _Sleep($iDelay) Then Return
		Next
	Case "NoSpace"
		For $i = 0 To 3
		If _MultiPixelSearch3(438, 372 + $g_iMidOffsetY, 590, 404 + $g_iMidOffsetY, 1, 1, Hex(0x131313, 6), $offColors3, 20) <> 0 Then
			If $bClick Then PureClick($g_iMultiPixelOffSet[0] - 280, $g_iMultiPixelOffSet[1], 1, 0)
			SetDebugLog($g_iMultiPixelOffSet[0] & "|" & $g_iMultiPixelOffSet[1])
			Return True
		EndIf
		If _Sleep($iDelay) Then Return
		Next
	Case "Drag"
		ClickDrag(236, 452, 835, 452, 250)
		Return True
	 EndSwitch
     Return False
 EndFunc   ;==>DailyChallengesSector

This is from post https://mybot.run/forums/index.php?/topic/38997-mod-fragment-daily-rewards-mod/

Hex(0x97DF47, 6) seem detect the claim button not so well

 

Share this post


Link to post
Share on other sites
On 8/11/2019 at 12:45 PM, radioactive_peaches said:

Will try it! Thanks!

ok good,! but seem like official mybot got ClaimReward_0_90.xml file hiding in Resources folder :D

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...