มันใช้งานไม่ได้อ่ะครับ ช่วยดูให้หน่อยครับ ว่าผมต้องแก้ตรงไหน เพิ่งลองเขียนอ่ะครับ
Global $GameHD
Func _PSsixLoadH($gtitle)
$GameHD = WinGetHandle($gtitle)
If @error Then
MsgBox(4096, "Error", "Not Found Game")
Else
Return 1
EndIf
EndFunc
If _PSsixLoadH("FIFA") Then WinActivate($GameHD)
HotKeySet("{ENTER}","_start")
Func _start()
MsgBox("Start")
While 1
ControlClick ($GameHD,"","","Left",2,698,190) Sleep(2)
ControlClick ($GameHD,"","","left",1,707,535) Sleep(2)
ControlClick ($GameHD,"","","left",1,441,467) Sleep(2)
ControlClick ($GameHD,"","","left",1,439,438) Sleep(2)
ControlClick ($GameHD,"","","left",1,454,130) Sleep(2)
ControlClick ($GameHD,"","","left",1,696,190) Sleep(2)
WEnd
EndFunc
HotKeySet("{ESC}","_stop")
Func _stop()
MsgBox("End")
Exit
EndFunc
Global $GameHD
Func _PSsixLoadH($gtitle)
$GameHD = WinGetHandle($gtitle)
If @error Then
MsgBox(4096, "Error", "Not Found Game")
Else
Return 1
EndIf
EndFunc
If _PSsixLoadH("FIFA") Then WinActivate($GameHD)
HotKeySet("{ENTER}","_start")
Func _start()
MsgBox("Start")
While 1
ControlClick ($GameHD,"","","Left",2,698,190) Sleep(2)
ControlClick ($GameHD,"","","left",1,707,535) Sleep(2)
ControlClick ($GameHD,"","","left",1,441,467) Sleep(2)
ControlClick ($GameHD,"","","left",1,439,438) Sleep(2)
ControlClick ($GameHD,"","","left",1,454,130) Sleep(2)
ControlClick ($GameHD,"","","left",1,696,190) Sleep(2)
WEnd
EndFunc
HotKeySet("{ESC}","_stop")
Func _stop()
MsgBox("End")
Exit
EndFunc