채팅0

    형들 나 ㅁㅋㄹ 때문에 질문 (코드잇음)

    조회수 627

    #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 체력바 인식 임

    댓글7

    회원프로필

    else {

    SetTimer, PressKey, Off

    } 이부분을 타는지부터 체크해봐야할듯

    2024.02.07 06:39
    회원프로필

    감사합니다

    2024.02.07 06:47
    회원프로필

    *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키를 중지한다는 내용이 어딨음 ?

    2024.02.07 06:43
    회원프로필

    If looping {

    SetTimer, PressKey, 500 ; 0.5초마다 PressKey 함수를 호출하여 키를 누름

    } else {

    SetTimer, PressKey, Off

    } 여기있잔...

    2024.02.07 06:45
    회원프로필

    PressKey:

    Send, c ; C 키를 누르는 동작

    return

    아미안요 맨밑을 걍 내렸네

    2024.02.07 06:47
    회원프로필

    StartScript() < 이거 쓰면 전체 중지 시작 되는거 아니야 형??

    2024.02.07 06:47
    회원프로필

    아 내가 알못이네
    아무튼 f10눌러도 c는 계속 하는데 물약은 안먹고 그래 왜그러지 싶어
    위에 올린게 전체 스크립트야

    2024.02.07 06:48

      게시글 리스트
      제목작성자작성일조회
      공지10-2022105
      6166121:585
      6166019:5334
      6165916:4572
      6165812:52127
      6165700:19196
      6165611-09245
      6165511-09221
      6165411-09246
      6165311-09277
      6165211-09254
      6165111-09300
      6165011-09351
      6164911-09296
      6164811-08342
      6164711-08353
      6164611-08419
      6164511-08486
      6164411-08502
      6164311-08489
      안내 배너 이미지