Originally Posted by
kanin03
Hello, allouan
I have suggestion about shade color, you make the text box for people can put the pixel and color of HP and MP monster HP MP bla bla.
so it can support all resolution and shade of color.
I have some question about how can you coding slider for HP,MP setting, I mean user can config how % of hp they want to heal
now I'm working on my own bot in Swordman game but I only can pixel check with Fix the HP < 60% MP < 60% to regen.
Thank you for your help i keep this idea but I work on an easier idea for the moment.
But if it doesnt work your idea may be good but it's still difficult for the user to set.
And for the system of my detect HP im using slider. The slider is used only to give a coordinated X of HP bar. The coordinated Y is fixed. Look.
Code:
$b = GUICtrlRead($iSlider2) ;======= $b = read my slider HP
$Color = 0x372A11 ;=============the color need be decetected (black because cant detect green on AA dunno why)
$xCoord = $b ;======xcoord = read $b so the slider HP
$y=63;=====Coord Y was fixed
if PixelSearch($xCoord,$y,$xCoord+10,$y+10, $Color, 40, $hWnd) <> 0 Then
Sleep("800")
ControlSend($hWnd, "", "", "{F5}");====shortcut heal
$i = GUICtrlRead($Input9) * 1000;====imput cast time in sec
Sleep($i);==== sleep during cast time
EndIf
I hop it can help you