I'm a bit of a noob, so sorry in advance if I'm not doing this right.
I'm using python 3.6x
What I have so far that gets the command window open is
import os
os.open("start cmd")
but this comes up in the directory that I'm working from and not in administration mode.
I've also tried
import os
os.system("start /wait cmd /wait {tskill dwm}")
but that didn't work either. (tskill dwm
is what I'm trying to get python to write in to command manager to fix a bug with windows' buttons not going away)
My overall goal is to just click this python script Blah.py
and have it restart the windows viewer or whatever it's called. Doing this clears the stuck buttons. Overall this is just an exercise in practicing python. I know I could just disable the button fade out and that would take care of the issue. I just figured this would be a good learning opportunity.