คือ อยากให้มันทำงานพร้อมๆกันทั้งสองอย่างครับ
แต่ผมไม่รู้ว่า จะเขียนให้เปงฟังชันยังไง ถ้ายังไงก้อกรุณา
แยกเปงฟังชัยให้ผมทีนะครับ
นี้ฟังชันอันนึง
While 1
$coord = PixelSearch(75, 2, 150, 12,0xBDBDBD)
If Not @error Then
if WinActive ("00000") then Send("{Q}")
Sleep(200)
EndIf
$coord = PixelSearch(76, 17, 125, 27,0xBDBDBD)
If Not @error Then
if WinActive ("00000") then Send("{W}")
Sleep(200)
EndIf
$coord = PixelSearch(75, 30, 125, 39 ,0xBDBDBD)
If Not @error Then
if WinActive ("00000") then Send("{E}")
Sleep(200)
EndIf
นี้อีกฟังชันอันนึง
While 1
if WinActive ("00000") then Send ("{1}")
If Not @error Then
Sleep(2000)
EndIf
if WinActive ("00000") then Send ("{2}")
If Not @error Then
Sleep(2000)
EndIf
if WinActive ("00000") then Send ("{3}")
If Not @error Then
Sleep(2000)
EndIf
if WinActive ("00000") then Send ("{4}")
If Not @error Then
Sleep(2200)
EndIf
if WinActive ("00000") then Send ("{5}")
If Not @error Then
Sleep(2200)
EndIf
if WinActive ("00000") then Send ("{6}")
If Not @error Then
Sleep(2200)
EndIf
if WinActive ("00000") then Send ("{7}")
If Not @error Then
Sleep(2200)
EndIf
if WinActive ("00000") then Send ("{8}")
If Not @error Then
Sleep(2200)
EndIf
if WinActive ("00000") then Send ("{9}")
If Not @error Then
Sleep(2200)
EndIf
WEnd
แต่ผมไม่รู้ว่า จะเขียนให้เปงฟังชันยังไง ถ้ายังไงก้อกรุณา
แยกเปงฟังชัยให้ผมทีนะครับ
นี้ฟังชันอันนึง
While 1
$coord = PixelSearch(75, 2, 150, 12,0xBDBDBD)
If Not @error Then
if WinActive ("00000") then Send("{Q}")
Sleep(200)
EndIf
$coord = PixelSearch(76, 17, 125, 27,0xBDBDBD)
If Not @error Then
if WinActive ("00000") then Send("{W}")
Sleep(200)
EndIf
$coord = PixelSearch(75, 30, 125, 39 ,0xBDBDBD)
If Not @error Then
if WinActive ("00000") then Send("{E}")
Sleep(200)
EndIf
นี้อีกฟังชันอันนึง
While 1
if WinActive ("00000") then Send ("{1}")
If Not @error Then
Sleep(2000)
EndIf
if WinActive ("00000") then Send ("{2}")
If Not @error Then
Sleep(2000)
EndIf
if WinActive ("00000") then Send ("{3}")
If Not @error Then
Sleep(2000)
EndIf
if WinActive ("00000") then Send ("{4}")
If Not @error Then
Sleep(2200)
EndIf
if WinActive ("00000") then Send ("{5}")
If Not @error Then
Sleep(2200)
EndIf
if WinActive ("00000") then Send ("{6}")
If Not @error Then
Sleep(2200)
EndIf
if WinActive ("00000") then Send ("{7}")
If Not @error Then
Sleep(2200)
EndIf
if WinActive ("00000") then Send ("{8}")
If Not @error Then
Sleep(2200)
EndIf
if WinActive ("00000") then Send ("{9}")
If Not @error Then
Sleep(2200)
EndIf
WEnd