Giter Site home page Giter Site logo

gensinimpactlaunch's Introduction

原神,启动!但是基于python

耗时两个小时(原神下载了两个小时)
受到b站视频https://www.bilibili.com/video/BV1hu411E7Gk/   的启发做的电脑python版启动器
如果不想有烦人的UAC就要以管理员身份运行
当然也可以把UAC关了,但是不推荐
一些参数可以在config.py里面修改

gensinimpactlaunch's People

Contributors

anewinstance avatar

Stargazers

Xzhao avatar  avatar

Watchers

 avatar

Forkers

ljl20110606

gensinimpactlaunch's Issues

增加功能:启动时默认全屏

(本来想交pr的,但是改的有点少,就直接交Issues了)
因为有些人的电脑的原是不会默认全屏的,所以我就改了一下Launch()函数,以下是更改后:

def Launch():
    try:
        willRun = "\"" + launchPath + '\" -screen-fullscreen 0' # 事实上不确定要不要加 0
        os.popen(willRun)
    except Exception as e:
        print("可执行文件路径异常(无法启动)")
        print("如果你遇到了此问题,你可以把错误代码提供给支持人员(有没有支持人员就是另外一回事了)")
        print("错误代码:", e)
    pyautogui.keyDown('winleft')
    pyautogui.press("down")
    pyautogui.press("down")
    pyautogui.keyUp('winleft')
    sp=Thread(target=splash,daemon=True)
    sp.start()
    time.sleep(soundDelay)
    #播放声音
    pygame.mixer.music.play()
    time.sleep(15)
    flag=0
    while 1:
        #print("没有退出")
        pl = psutil.pids()
        for pid in pl:
            if procressName in psutil.Process(pid).name():
                #print("已退出")
                flag=1
                break
        if flag:
            break
        time.sleep(antiRelaunch)

希望采纳qwq

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.