พอโปรแกรม เช็ค ค่าสีจุดที่ 1 แล้ว กระโดดไป ฟังชั่น core() พอทำงานที่ฟังงั่น core() เสร็จแล้ว โปรแกรมจะไปทำงานที่ ฟังชั่น core2() ต่อเลยหรือป่าวคับ หรือว่า กลับมาเช็คค่าสี ใหม่ก่อนคับ คือผมสงสัยว่าทีแรกผมเช็คค่าสีจุด เดียว โปรแกรมทำงานดี แต่พอผมยิ่งเพิ่มจุดเข้าไปยิ่งเยอะโปรแกรมก็ไม่กด space ผมก็เลยอยากรู้ว่าโปรแกรมทำงานยังงัย ช่วยทีนะคับ
if WinExists("-----") Then WinActivate ("----")
While 1
$Pixe = PixelGetColor (884, 348) ;เช็คค่าสีจุดที่ 1
if $Pixe = 0x0962FDthen
core()
endif
$Pixe = PixelGetColor (884, 426) ;เซ็คค่าสีจุดที่ 2
if $Pixe = 0x0962FDthen
core2()
endif
WEnd
Func core()
$Pixe = PixelGetColor (894, 328); จากบนสุดลงด้านล่าง
if $Pixe = 0x95D98Ethen
Send("{SPACE}")
EndIf
EndFunc
Func core2()
$Pixe = PixelGetColor (894, 410); จากบนสุดลงด้านล่าง
if $Pixe = 0x95D98Ethen
Send("{SPACE}")
EndIf
EndFunc
if WinExists("-----") Then WinActivate ("----")
While 1
$Pixe = PixelGetColor (884, 348) ;เช็คค่าสีจุดที่ 1
if $Pixe = 0x0962FDthen
core()
endif
$Pixe = PixelGetColor (884, 426) ;เซ็คค่าสีจุดที่ 2
if $Pixe = 0x0962FDthen
core2()
endif
WEnd
Func core()
$Pixe = PixelGetColor (894, 328); จากบนสุดลงด้านล่าง
if $Pixe = 0x95D98Ethen
Send("{SPACE}")
EndIf
EndFunc
Func core2()
$Pixe = PixelGetColor (894, 410); จากบนสุดลงด้านล่าง
if $Pixe = 0x95D98Ethen
Send("{SPACE}")
EndIf
EndFunc