defprintMe(): print("##########################################################") print("## Website: RyzenX.com ##") print("## By Steven Yan ##") print("##########################################################")
defgoodBye(): print("\nGood Bye! See you next time!\n") for i inrange(1, 4): print("-> %s" % str(4-i)) time.sleep(1) sys.exit(0)
if __name__ == "__main__": ifnot os.name == "nt": print("This Program only supports Windows") sys.exit(1) else: os.system("mode con cols=60 lines=30") os.system("color 0e") os.system("title Daily Wallpaper Changer from StevenOS.com") printMe() print("Now: %s \n" % time.ctime()) tempDir = os.getenv('TEMP') print("Your TEMP dir is: "+tempDir+"\n") print("Note: cleaning out "+tempDir+" will delete the wallpaper file") time.sleep(1) downloadPic(getUrl()) moveFile("pyDesktopPic.jpg", tempDir) convPic(tempDir+"\pyDesktopPic.jpg", tempDir+"\pyDesktopPic.bmp") time.sleep(1) setWallpaper(tempDir+"\pyDesktopPic.bmp") goodBye()
@echo off title Program Starter %1 %2 ver|find "5." > nul && goto :main mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :main","","runas",1)(window.close) & goto :eof :main cls mode con cols=60 lines=20 color 06 echo########################################################## echo## You can just drag your file into here ## echo## ## echo## Website: RyzenX.com ## echo## By Steven ## echo########################################################## pause :ch echo########################################################## echo## 1, Add the Program to `Run` Registry ## echo## 2, Add the program to scheduled task ## echo## 3, Add the program to Desktop Right-Click *Good ## echo########################################################## echo. echo Pleas enter your choice set /p a= : set /p src= Enter the Program path: set /p name= Enter the Key Name (Important): if %a%==1 goto addReg if %a%==2 goto addSchtask if %a%==3 goto rc echo Not good. & pause & goto ch :addReg reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v %name% /d %src% /f pause&goto main :addSchtask echo. echo CAUTION: Time formatted like this: 10:10:00 set /p ttt= What time do you want to change your Wallpaper: schtasks /create /tn %name% /ru system /tr %src% /sc DAILY /st %ttt% pause&goto main :rc echo. echo Right-Click at desktop, you can click "%name%" to change your wallpaper manually. echo. pause reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\%name%" /f reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\%name%\command" /f reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\%name%\command" /ve /d "%src%" /f pause&goto main