So I want to find out the program that system() uses in this code, to open it that way and be able to change the location.
import os
import ctypes
import tkinter
import pywinauto
user32 = ctypes.windll.user32
screensX = user32.GetSystemMetrics(0)
screensY = user32.GetSystemMetrics(1)
app = pywinauto.application.Application()
app.start(os.system("Simplicity_TheFinerArtOfCreatingSoftware_CheatSheet_1Page.pdf"))
window = app.window()
xdiv2=screensX/2
ydiv2=screensY/2
window.move_window(x=-50, y=0, width=xdiv2, height=ydiv2, repaint=True)
since this code will resort in an error (since system(x.pdf) isn't an .exe file.
I suspected this error while I was making the program, but don't know how else to do it.