ช่วยดู script ทีครับโค้ดดึงสีมันใช้ไม่ได้อ่ะ
Global $GameHD
HotKeySet("{ESC}","stop")
If _PSsixLoadH("Nox") Then WinActivate($GameHD)
Func _PSsixLoadH($gtitle)
$GameHD = WinGetHandle($gtitle)
If @error Then
MsgBox(4096,"Error","Not Found Game")
Else
Return 1
EndIf
EndFunc
While 1
If PixelGetColor(180,57) = 0x0D0D0C Then
Sleep(120000)
Send("1")
Sleep(2000)
Send("5")
Sleep(2000)
Send("5")
Sleep(60000)
Send("2")
EndIf
If PixelGetColor(180,57) = 0x0D0D0C Then
Sleep(120000)
Send("1")
Sleep(2000)
Send("4")
Sleep(2000)
Send("4")
Sleep(60000)
Send("2")
EndIf
WEnd
Func stop()
ToolTip('หยุดการทำงาน', 0, 0)
Sleep(500)
Exit
EndFunc
Global $GameHD
HotKeySet("{ESC}","stop")
If _PSsixLoadH("Nox") Then WinActivate($GameHD)
Func _PSsixLoadH($gtitle)
$GameHD = WinGetHandle($gtitle)
If @error Then
MsgBox(4096,"Error","Not Found Game")
Else
Return 1
EndIf
EndFunc
While 1
If PixelGetColor(180,57) = 0x0D0D0C Then
Sleep(120000)
Send("1")
Sleep(2000)
Send("5")
Sleep(2000)
Send("5")
Sleep(60000)
Send("2")
EndIf
If PixelGetColor(180,57) = 0x0D0D0C Then
Sleep(120000)
Send("1")
Sleep(2000)
Send("4")
Sleep(2000)
Send("4")
Sleep(60000)
Send("2")
EndIf
WEnd
Func stop()
ToolTip('หยุดการทำงาน', 0, 0)
Sleep(500)
Exit
EndFunc
แก้ไขล่าสุดโดย artkungna เมื่อ 25/12/17, 10:58 pm, ทั้งหมด 5 ครั้ง