#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 체력바 인식 임
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 공지 | 게시판 이용 안내+156 | 10-20 | 22105 | |
| 61661 | 21:58 | 5 | ||
| 61660 | 19:53 | 34 | ||
| 61659 | 16:45 | 72 | ||
| 61658 | 12:52 | 127 | ||
| 61657 | 00:19 | 196 | ||
| 61656 | 11-09 | 245 | ||
| 61655 | 11-09 | 221 | ||
| 61654 | 11-09 | 246 | ||
| 61653 | 11-09 | 277 | ||
| 61652 | 11-09 | 254 | ||
| 61651 | 11-09 | 300 | ||
| 61650 | 11-09 | 351 | ||
| 61649 | 11-09 | 296 | ||
| 61648 | 11-08 | 342 | ||
| 61647 | 11-08 | 353 | ||
| 61646 | 11-08 | 419 | ||
| 61645 | 11-08 | 486 | ||
| 61644 | 11-08 | 502 | ||
| 61643 | 11-08 | 489 |
댓글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는 계속 하는데 물약은 안먹고 그래 왜그러지 싶어
위에 올린게 전체 스크립트야