#Persistent ; 스크립트를 종료하지 않고 계속 실행되도록 함
If !MsgBoxDisplayed { ; 메시지 박스가 표시되지 않았다면
MsgBox, f11체력f12마나f9종료f10시작 중지/체력 델 마나 엔드
MsgBoxDisplayed := true ; 메시지 박스가 표시되었음을 표시
}
#NoEnv
SetBatchLines -1
CoordMode, Mouse, Screen
CoordMode, Pixel, Screen
prevColorHP := "0x000000"
prevColorMP := "0x000000"
hpPotionLastUsed := 0
mpPotionLastUsed := 0
potionCooldown := 1000
looping := false
SetKeyDelay, 0, 0
F9::ExitApp
*F11::
MouseGetPos, PxHP, PyHP
PixelGetColor, prevColorHP, PxHP, PyHP
ToolTip, 체력을 체크할 위치와 색상이 설정되었습니다.n위치: %PxHP%, %PyHP%`. 색상: %prevColorHP%.
SetTimer, RemoveToolTip, 1000
return
*F12::
MouseGetPos, PxMP, PyMP
PixelGetColor, prevColorMP, PxMP, PyMP
ToolTip, 마나를 체크할 위치와 색상이 설정되었습니다.n위치: %PxMP%, %PyMP%`. 색상: %prevColorMP%.
SetTimer, RemoveToolTip, 1000
return
*F10::StartScript()
StartScript() {
looping := !looping
ToolTip % looping ? "온" : "오프."
SetTimer, CheckHPMP, % looping ? 500 : "Off"
SetTimer, RemoveToolTip, 1000
If looping {
SetTimer, PressKey, 500 ; 0.5초마다 PressKey 함수를 호출하여 키를 누름
} else {
SetTimer, PressKey, Off
}
}
CheckHPMP:
PixelGetColor, currentColorHP, PxHP, PyHP
if (currentColorHP = prevColorHP && (A_TickCount - hpPotionLastUsed > potionCooldown)) {
Send, {Delete}
hpPotionLastUsed := A_TickCount
}
PixelGetColor, currentColorMP, PxMP, PyMP
if (currentColorMP = prevColorMP && (A_TickCount - mpPotionLastUsed > potionCooldown)) {
Send, {End}
mpPotionLastUsed := A_TickCount
}
return
PressKey:
Send, c ; C 키를 누르는 동작
return
RemoveToolTip:
ToolTip
return
물약먹는게 체/마 델리트 엔드로 해놨고C를 줍기로 했거든?
근데 f10을 누르면 포션먹는건 중지하는데 템줍기는 중지가 안돼.
포션먹기/템줍기 이게 한번에 일시정지 되게 못만드나?? ㅠㅠ
f9 종료 f10 모든기능 시작/중지/f11 f12 체력바 인식 임
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 31401 | 02-07 | 648 | ||
| 31400 | 02-07 | 627 | ||
| 31399 | 02-07 | 468 | ||
| 31398 | 02-07 | 395 | ||
| 31397 | 02-07 | 629 | ||
| 31396 | 02-07 | 375 | ||
| 31395 | 02-07 | 469 | ||
| 31394 | 02-07 | 344 | ||
| 31393 | 02-07 | 500 | ||
| 31392 | 02-07 | 421 | ||
| 31391 | 02-07 | 395 | ||
| 31390 | 02-07 | 787 | ||
| 31389 | 02-07 | 440 | ||
| 31388 | 02-07 | 368 | ||
| 31387 | ㅎ 삽니다+2 | 02-07 | 378 | |
| 31386 | 02-07 | 678 | ||
| 31385 | 02-07 | 445 | ||
| 31384 | 02-07 | 350 | ||
| 31383 | 02-07 | 546 | ||
| 31382 | 02-07 | 363 |
댓글7
else {
SetTimer, PressKey, Off
} 이부분을 타는지부터 체크해봐야할듯
감사합니다
*F10::StartScript()
StartScript() {
looping := !looping
ToolTip % looping ? "온" : "오프."
SetTimer, CheckHPMP, % looping ? 500 : "Off"
SetTimer, RemoveToolTip, 1000
If looping {
SetTimer, PressKey, 500 ; 0.5초마다 PressKey 함수를 호출하여 키를 누름
} else {
SetTimer, PressKey, Off
}
}
F10 = 함수에 도대체 C키를 중지한다는 내용이 어딨음 ?
If looping {
SetTimer, PressKey, 500 ; 0.5초마다 PressKey 함수를 호출하여 키를 누름
} else {
SetTimer, PressKey, Off
} 여기있잔...
PressKey:
Send, c ; C 키를 누르는 동작
return
아미안요 맨밑을 걍 내렸네
StartScript() < 이거 쓰면 전체 중지 시작 되는거 아니야 형??
아 내가 알못이네
아무튼 f10눌러도 c는 계속 하는데 물약은 안먹고 그래 왜그러지 싶어
위에 올린게 전체 스크립트야