มึนตึบแล้วครับพยายามสุดความสามารถก็ยังงงอยู่ดี
คือผมต้องการให้ มันค้นหาสีที่พิกัด if PixelGetColor( xxxx ,xxxxx ) = 0x.... Then (สีเดียวผมทำได้แล้วครับ)
แต่อยากให้มันหา 2 สี คนละพิกัด ซึ่งตอนนี้ผมทำไม่ได้ครับ
ผมใช้คำสั่ง
#RequireAdminC
$time = 1
While 1
If PixelGetColor (1044,606) = 0xCE1A00 Then
$time = $time - 1
If $time = 0 Then
MouseClick("",1089,33,1,0)
$time = 1
EndIf
Else
$time = 1
EndIf
Sleep(1000)
WEnd
คือผมต้องการให้ มันค้นหาสีที่พิกัด if PixelGetColor( xxxx ,xxxxx ) = 0x.... Then (สีเดียวผมทำได้แล้วครับ)
แต่อยากให้มันหา 2 สี คนละพิกัด ซึ่งตอนนี้ผมทำไม่ได้ครับ
ผมใช้คำสั่ง
#RequireAdminC
$time = 1
While 1
If PixelGetColor (1044,606) = 0xCE1A00 Then
$time = $time - 1
If $time = 0 Then
MouseClick("",1089,33,1,0)
$time = 1
EndIf
Else
$time = 1
EndIf
Sleep(1000)
WEnd