What I'm attempting to do is create a python file, then execute it through the windows command prompt. When it runs, it should change the title of the command prompt to a different value. Currently, I use the following code segment
ctypes.windll.kernel32.SetConsoleTitleW("My New Title")
the issue with this is that if I click on a different application and the command prompt is in the background, the title will not update.
Any other methods that would fix this? Solutions should be thread-safe as well.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…