InTen

데스나이트 키우기 매크로 소스 파일 본문

프로그래밍/파이썬

데스나이트 키우기 매크로 소스 파일

인텐 2020. 9. 20. 18:27

데스나이트 키우기 매크로 소스 올려드립니다.

수정해서 사용하실 분들은 사용하세요.

혼자 사용하기 위해서 대충 만든것이니 수정해서 써주세요.

아마도 불편함 점을 느끼면 개선할것도 같지만 지금은 그렇게 불편한 점은 없네요.

수정할 부분 있다면 말씀해주세요.

 

import pywinauto as pwa
import pyautogui
import sys
import os
import time
def setFocus(title_reg):
    app = pwa.application.Application()
    t = title_reg
    print('find title : ' + str(title_reg))
    try:
        handle = pwa.findwindows.find_windows(title_re=t)[0]
        app.connect(handle=handle)
        print('title: ' + str(t) + 'handle: ' + str(handle) + ' Setted')
    except:
        print('No title exist on window ')
    window = app.window(handle=handle)
    try:
        window.set_focus()
    except Exception as e:
        print('[error]setFocuse : ' + str(e))
    return window
def setFocusBlueStack():
    t = u'BlueStack*'
    return setFocus(t)
if __name__=="__main__":
    cnt = 1
    while True:
        print("매크로가 동작 중이니 동작이 끝날때까지 기다려주세요.")
        setFocusBlueStack()
        time.sleep(5)
        pyautogui.typewrite('yret',interval=5)
        time.sleep(50)
        print("AD Close Press Q ")
        pyautogui.typewrite('uqt',interval=5)
        for i in range(31,0,-1):
            os.system('cls')
            print(i,"분 후 배치가 작동합니다.")
            print("info : 배치 1분 전에는 하던 행동을 멈추고 동작이 끝날 때까지 기다려주세요.")
            print("매크로 동작 횟 수 : ",cnt)
            time.sleep(60)
        for i in range(20,0,-1):
            os.system('cls')
            print(i,"초 후에 배치가 작동합니다.")
            time.sleep(1)
        cnt += 1

 

데스나이트 키우기 매크로가 필요하신 분들은 아래 게시글 확해주세요.

 

inten.tistory.com/entry/%EB%8D%B0%EC%8A%A4%EB%82%98%EC%9D%B4%ED%8A%B8-%ED%82%A4%EC%9A%B0%EA%B8%B0-%EB%A7%A4%ED%81%AC%EB%A1%9C-%EB%8B%A4%EC%9A%B4

 

데스나이트 키우기 매크로 다운

안녕하세요. 오늘은 데스나이트 키우기 : 방치형 RPG 게임 매크로에 대해서 게시글을 올릴려고 합니다. 만든 매크로는 30분 자수정 파밍만 해주는 매크로 입니다. 자수정 광고 제거 하신 환경인 ��

inten.tistory.com

 

Comments