diff --git a/Executor/main.py b/965-Executor/965-Executor-main.py similarity index 100% rename from Executor/main.py rename to 965-Executor/965-Executor-main.py diff --git a/BingWallpaper-Capture/BingWallpaper-Capture-Linux-x86_64 b/BingWallpaper-Capture/BingWallpaper-Capture-Linux-x86_64 new file mode 100644 index 0000000..d75c2a6 Binary files /dev/null and b/BingWallpaper-Capture/BingWallpaper-Capture-Linux-x86_64 differ diff --git a/BingWallpaperCapture/main.py b/BingWallpaper-Capture/BingWallpaper-Capture-main.py similarity index 100% rename from BingWallpaperCapture/main.py rename to BingWallpaper-Capture/BingWallpaper-Capture-main.py diff --git a/domain-set_generator/main.py b/Domain-Set-Generator/main.py similarity index 100% rename from domain-set_generator/main.py rename to Domain-Set-Generator/main.py diff --git a/Misc/Genshin.py b/Misc/Genshin.py new file mode 100644 index 0000000..68411c1 --- /dev/null +++ b/Misc/Genshin.py @@ -0,0 +1,91 @@ +import os +import shutil +import time + + +def txtreplace(name, path, character, content): + filename = '{0}\\{1}'.format(path, name) + txt = open(filename, 'r', encoding='UTF-8') + lines = txt.readlines() + savtxt = open(filename, 'w', encoding='UTF-8') + for i in lines: # 对TXT 进行逐行读取 + savtxt.write(i.replace(character, content)) + txt.close() + savtxt.close() + + +def txtsearch(num, path, character): + filename = '{0}\\{1}'.format(path, num) + txt = open(filename, 'r', encoding='UTF-8') + lines = txt.readlines() + for lines in lines: # 对TXT 进行逐行读取 + if character in lines: + return lines + txt.close() + + +dirpath = 'D:\\Genshin Impact Official\\Genshin Impact Game\\' +pluginres = 'D:\\GenshinBiliLoginPlugin\\PCGameSDK.dll' +pluginpath = 'D:\\Genshin Impact Official\\Genshin Impact Game\\YuanShen_Data\\Plugins\\PCGameSDK.dll' +filenam = 'config.ini' +o1 = 'channel=1' +b1 = 'channel=14' +o2 = 'cps=mihoyo' +b2 = 'cps=bilibili' +loop = 1 + +print('''############################ +##\\1切换到官服,2切换到B服/## +############################''') + +livedata = str(txtsearch(filenam, dirpath, 'channel=')) +ver = 2 +if b1 in livedata: + print('''######\\当前版本: B服/###### +############################''') + ver = 0 +elif o1 in livedata: + print('''######\\当前版本: 官服/###### +############################''') + ver = 1 +else: + print('''############################ +####Configuration Error#### +############################''') +des = int(input('输入:')) +while loop < 2: + if des == 1: + if ver == 0: + txtreplace(filenam, dirpath, b1, o1) + txtreplace(filenam, dirpath, b2, o2) + os.remove(pluginpath) + loop = 3 + print('''############################ +#########\\Finished/######### +############################''') + elif ver == 1: + loop = 3 + print('''############################ +####\\已是官服,无需切换/#### +############################''') + elif des == 2: + if ver == 1: + txtreplace(filenam, dirpath, o1, b1) + txtreplace(filenam, dirpath, o2, b2) + shutil.copyfile(pluginres, pluginpath) + loop = 3 + print('''############################ +#########\\Finished/######### +############################''') + elif ver == 0: + loop = 3 + print('''############################ +#####\\已是B服,无需切换/##### +############################''') + else: + print('''############################ +#######\\Input Error/####### +############################''') + des = int(input('输入:')) + +time.sleep(3) diff --git a/Misc/copy-pigai.org.py b/Misc/copy-pigai.org.py new file mode 100644 index 0000000..dc3cb59 --- /dev/null +++ b/Misc/copy-pigai.org.py @@ -0,0 +1,13 @@ +import time +import pynput +import pyperclip + +print("请将文稿复制到剪切板内并切换输入法为英文,延时10s") +time.sleep(10) +txt = pyperclip.paste() +pynput.keyboard = pynput.keyboard.Controller() +for i in txt: + pynput.keyboard.type(i) + time.sleep(0.015) +print("finish!") +time.sleep(2) \ No newline at end of file diff --git a/Network-Watchdog/Network-Watchdog-main.py b/Network-Watchdog/Network-Watchdog-main.py new file mode 100644 index 0000000..e69de29 diff --git a/PyForceAwake/main.py b/PyForceAwake/PyForceAwake-main.py similarity index 100% rename from PyForceAwake/main.py rename to PyForceAwake/PyForceAwake-main.py diff --git a/iSmartAnsAnalize/scripts.py b/iSmartAnsAnalize/iSmartAnsAnalize-main.py similarity index 100% rename from iSmartAnsAnalize/scripts.py rename to iSmartAnsAnalize/iSmartAnsAnalize-main.py