示例#1
0
def select_mode():
    global start
    end = time.time()
    hours, rem = divmod(end - start, 3600)
    minutes, seconds = divmod(rem, 60)
    print("运行时间:{:0>2}:{:0>2}:{:05.2f}".format(int(hours), int(minutes),
                                               seconds))
    print(datetime.datetime.now())

    print('''\n菜单:  鼠标移动到最右侧中止并返回菜单页面,0退出
        1 结界突破
        2 御魂(司机)
        3 御魂(打手)
        4 御魂(单刷)
        5 探索(司机)
        6 探索(打手)
        7 探索(单刷)
        8 百鬼夜行
        9 自动斗技
        10 当前活动(超鬼王)
        11 结界自动合卡(太阴和伞室内)
        12 厕纸抽卡
        13 蓝蛋升级
        14 秘境召唤
        15 妖气封印和秘闻
        ''')
    action.alarm(1)
    raw = input("选择功能模式:")
    try:
        index = int(raw)
    except:
        print('请输入数字')
        select_mode()

    mode = [0, tupo, yuhun, yuhun2, yuhundanren,\
            gouliang, gouliang2, gouliang3,\
            baigui, douji, huodong,\
            card, chouka, shengxing, mijing, yaoqi]
    try:
        command = mode[index]
    except:
        print('数字超出范围')
        select_mode()

    if index == 0:
        quit()
    else:
        start = time.time()
        command()
示例#2
0
def select_mode():
    print('''\n菜单:  鼠标移动到最右侧中止并返回菜单页面,
        1 结界自动合卡,自动选择前三张合成
        2 自动通关魂十,自动接受组队并确认通关
        3 自动通关业原火,单刷
        4 自动刷组队狗粮(打手模式),
        5 单刷探索副本,无法区分经验BUFF
        ''')
    action.alarm(1)
    raw = input("选择功能模式:")
    index = int(raw)

    mode = [0, card, yuhun, yeyuanhuo, goliang, solo]
    comand = mode[index]
    comand()
示例#3
0
def select_mode():
    print('''\n菜单:  鼠标移动到最右侧中止并返回菜单页面,
        1 结界突破
        2 自动御魂通关(司机)
        3 自动御魂通关(打手)
        4 自动御魂通关(单刷)
        5 自动探索副本(司机)
        6 自动探索副本(打手)
        7 自动探索副本(单刷)
        8 百鬼夜行
        9 斗技
        10 当前活动(鬼王之宴)
        11 结界自动合卡,自动选择前三张合成
        12 抽卡
        13 式神升星
        14 秘境召唤
        15 妖气封印
        ''')
    action.alarm(1)
    raw = input("选择功能模式:")
    try:
        index = int(raw)
    except:
        print('请输入数字')
        select_mode()

    mode = [0, tupo, yuhun, yuhun2, yuhundanren,\
            gouliang, gouliang2, gouliang3,\
            baigui, douji, huodong,\
            card, chouka, shengxing, mijing, yaoqi]
    try:
        comand = mode[index]
    except:
        print('数字超出范围')
        select_mode()
    try:
        comand()
    except:
        print('出现错误')
        select_mode()
示例#4
0
def select_mode():
    print (datetime.datetime.now())
    print('''\n菜单:  鼠标移动到最右侧中止并返回菜单页面
        1 结界突破
        2 御魂(司机)
        3 御魂(打手)
        4 御魂(单刷)
        5 探索(司机)
        6 探索(打手)
        7 探索(单刷)
        8 百鬼夜行
        9 自动斗技
        10 当前活动(鬼灭之刃)
        11 结界自动合卡(太阴和伞室内)
        12 厕纸抽卡
        13 式神升星
        14 秘境召唤
        15 妖气封印和秘闻
        ''')
    action.alarm(1)
    raw = input("选择功能模式:")
    try:
        index = int(raw)
    except:
        print('请输入数字')
        select_mode()

    mode = [0, tupo, yuhun, yuhun2, yuhundanren,\
            gouliang, gouliang2, gouliang3,\
            baigui, douji, huodong,\
            card, chouka, shengxing, mijing, yaoqi]
    try:
        command = mode[index]
    except:
        print('数字超出范围')
        select_mode()
    
    command()
示例#5
0
文件: yys.py 项目: wanghmalan/YYS
def select_mode():
    print('''\n菜单:  鼠标移动到最右侧中止并返回菜单页面,
        1 结界突破
        2 自动御魂通关(司机)
        3 自动御魂通关(打手)
        4 自动御魂通关(单刷)
        5 自动探索副本(打手),          
        6 自动探索副本(单刷)
        7 百鬼夜行
        8 斗技
        9 当前活动
        10 结界自动合卡,自动选择前三张合成
        11 抽卡
        ''')
    action.alarm(1)
    raw = input("选择功能模式:")
    index = int(raw)

    mode = [
        0, tupo, yuhun, yuhun2, yuhundanren, goliang, solo, baigui, douji,
        huodong, card, chouka
    ]
    comand = mode[index]
    comand()
示例#6
0
imgs = action.load_imgs()

os.system("adb devices")
start_time = time.time()
print('程序启动,现在时间', time.ctime())
print('菜单:1 结界自动合卡,2 自动通关魂十,3 自动通关业原火,4 自动刷组队狗粮(打手模式) ')
#以上启动,载入设置

##########################################################
if debug_mode:
    mode = debug_mode
else:
    raw = input("选择功能模式:")
    mode = int(raw)

action.alarm(1)
print("开始运行")

##########################################################
#合成结界卡,较简单,未偏移直接点
while mode == 1:
    x, y, z = (370, 238), (384, 385), (391, 525)  #前三张卡的位置
    zz = (871, 615)  #合成按钮位置
    for i in [x, y, z, zz]:
        action.touch(i)
        time.sleep(0.1)
    time.sleep(0.2)

########################################################
#魂十通关
while mode == 2: