• ubuntu下使用AutoKey实现ARK的自动跑/攻击/自动配种


    脚本1:

    if not store.has_key("ark_run"):
        store.set_value("ark_run", 1)
        keyboard.press_key('w')
    else:
        keyboard.release_key('w')
        store.remove_value("ark_run")  

    脚本2:

    import time
    if not store.has_key("ark_fight"):
        store.set_value("ark_fight", 1)
        while True:
            if not store.has_key("ark_fight"):
                break
            else:
                mouse.click_relative_self(0, 0, 1)
            time.sleep(0.25)
    else:
        store.remove_value("ark_fight")  

    脚本3:

    # Enter script code
    import time
    if not store.has_key("ark_breeding"):
        store.set_value("ark_breeding", 1)
        while True:
            if not store.has_key("ark_breeding"):
                break
            else:
                keyboard.send_key("u")
            time.sleep(0.25)
    else:
        store.remove_value("ark_breeding")
    

     相应键盘配置

  • 相关阅读:
    sort排序
    js数组
    json数据格式 与 for in
    js 定时器
    鼠标滚轮事件
    cookie
    POJ 2387 Til the Cows Come Home
    POJ 1459 Power Network
    HDU 5389 Zero Escape
    HDU 5387 Clock
  • 原文地址:https://www.cnblogs.com/eaglexmw/p/10199598.html
Copyright © 2020-2023  润新知