import os
import sys
import ctypes
import subprocess
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw

os.system("start DesktopTxt.txt")
input("Press Enter to continue...")

img = Image.open("Desktop_Clean.jpg")
f = open("DesktopTxt.txt")
tmp = 0
for line in f:
    draw = ImageDraw.Draw(img)
    font = ImageFont.truetype("font.ttf", 25)
    draw.text((25,tmp), line, (255,255,255),font=font)
    tmp = tmp+30
    print(line, end='')
img.save("DesktopNotes.jpg")
p = subprocess.Popen(["powershell.exe", "PATH TO PROJECT FOLDER\\ChangeBackground.ps1"], stdout=sys.stdout)
p.communicate()
