채팅0

    오핫 무반응은

    조회수 200

    오핫으로 무공쓰다가 어느순간부턴 가만히있더라고요?


    이거는 그냥 어쩔 수 없는거임? 잘때 켜두려고헀는데 쩝

    댓글2

    회원프로필

    오핫 코드를 제대로 짜보셈

    2024.01.28 07:28
    회원프로필

    그냥 챗 지피티한테 물어봐서 한건데..

    #Persistent

    F5::RunMyFunction()
    F6::PauseMyFunction()

    RunMyFunction() {
        global IsRunning
        IsRunning := true
       
        Loop {
            if (IsRunning) {
                Loop, 6 {
                    SendEvent, {Ctrl down}  ; Press the Ctrl key
                    Sleep, 500  ; Wait for 0.5 seconds
                    SendEvent, {Ctrl up}  ; Release the Ctrl key
                    Sleep, 500  ; Wait for 0.5 seconds
                }

                Random, AltOrLeft, 1, 2  ; Randomly choose 1 or 2

                if (AltOrLeft = 1) {
                    SendEvent, {Alt down}  ; Press the Alt key
                    Sleep, 2000  ; Wait for 2 seconds
                    SendEvent, {Alt up}  ; Release the Alt key
                } else {
                    SendEvent, {Left down}  ; Press the left arrow key
                    Sleep, 2000  ; Wait for 2 seconds
                    SendEvent, {Left up}  ; Release the left arrow key
                }

                ; Press the right arrow key twice
                SendEvent, {Right down}  ; Press the right arrow key
                Sleep, 10  ; Wait for 0.01 seconds
                SendEvent, {Right up}  ; Release the right arrow key

                Sleep, 7990  ; Wait for 7.99 seconds
            } else {
                break  ; Exit the loop
            }
        }
        return
    }

    PauseMyFunction() {
        global IsRunning
        IsRunning := !IsRunning  ; Toggle the running state
        return
    }
    이런거임... 뭐가 문젤까

    2024.01.28 07:30

      게시글 리스트
      제목작성자작성일조회
      2055701-28116
      2055601-28201
      2055501-28711
      2055401-28133
      2055301-28373
      2055201-28607
      2055101-28208
      2055001-28358
      2054901-28133
      2054801-28218
      2054701-28199
      2054601-28172
      2054501-28331
      2054401-28185
      2054301-28439
      2054201-28120
      2054101-28113
      2054001-28199
      2053901-28229
      2053801-28153
      안내 배너 이미지