ตรงที่ผม *input แปลว่าผมอยากให้ กรอกข้อมูลตรงนั้นอะคับ แต่ผมทำ GUI มะเป็น
ทำหน้าต่างให้ผมทีซิคับ
จะมี input คีย์ วินาที พิกัด อะคับ สำหรับกรอกใส่แล้วรันโค๊ด
Global $GameHD
Func _PSsixLoadH($gtitle)
$GameHD = WinGetHandle($gtitle)
If @error Then
MsgBox(4096, "Error", "ไม่พบหน้าต่างเกม")
Else
Return 1
EndIf
EndFunc
If _PSsixLoadH("xxxxx") Then WinActivate($GameHD)
HotKeySet("{ESC}", "stop")
Func HP()
If PixelGetColor(175, 83*input) = 0x313F50*input Then
Send("{F4*input}")
EndIf
Sleep(2000*input)
EndFunc
Func MP()
If PixelGetColor(161, 92*input) = 0x2C3949*input Then
Send("{F3*input}")
EndIf
Sleep(2000*input)
EndFunc
Func Buff()
Send ("{F2*input}")
Sleep (110000*input)
EndFunc
Func Attack()
Send("{TAB}")
Sleep(1000*input)
$coord = PixelSearch(446, 89, 550, 94*input,0xE66555*input)
If Not @error Then
Sleep(1000*input)
Send("1"*input)
Sleep(5000)
Send("2"*input)
Sleep(5000*input)
Send("3"*input)
Sleep(5000)
Send("4"*input)
Sleep(5000*input)
Send("5"*input)
Sleep(5000*input)
EndIf
EndFunc
While 1
HP()
MP()
Buff()
Attack()
WEnd
Func Stop()
MsgBox(0,"Stop ", "—YakuZA— Bye Bye!!~")
Sleep(500)
Exit
EndFunc
ทำหน้าต่างให้ผมทีซิคับ
จะมี input คีย์ วินาที พิกัด อะคับ สำหรับกรอกใส่แล้วรันโค๊ด
Global $GameHD
Func _PSsixLoadH($gtitle)
$GameHD = WinGetHandle($gtitle)
If @error Then
MsgBox(4096, "Error", "ไม่พบหน้าต่างเกม")
Else
Return 1
EndIf
EndFunc
If _PSsixLoadH("xxxxx") Then WinActivate($GameHD)
HotKeySet("{ESC}", "stop")
Func HP()
If PixelGetColor(175, 83*input) = 0x313F50*input Then
Send("{F4*input}")
EndIf
Sleep(2000*input)
EndFunc
Func MP()
If PixelGetColor(161, 92*input) = 0x2C3949*input Then
Send("{F3*input}")
EndIf
Sleep(2000*input)
EndFunc
Func Buff()
Send ("{F2*input}")
Sleep (110000*input)
EndFunc
Func Attack()
Send("{TAB}")
Sleep(1000*input)
$coord = PixelSearch(446, 89, 550, 94*input,0xE66555*input)
If Not @error Then
Sleep(1000*input)
Send("1"*input)
Sleep(5000)
Send("2"*input)
Sleep(5000*input)
Send("3"*input)
Sleep(5000)
Send("4"*input)
Sleep(5000*input)
Send("5"*input)
Sleep(5000*input)
EndIf
EndFunc
While 1
HP()
MP()
Buff()
Attack()
WEnd
Func Stop()
MsgBox(0,"Stop ", "—YakuZA— Bye Bye!!~")
Sleep(500)
Exit
EndFunc