I want to to add text ontop of other windows (even fullscreen ones) which can be changed in a while loop. For example the script is While True, and it reads numbers on the screen and the superimposed text is always showing the sum of the numbers like so:
Its important that it can be edited for new numbers, and removed when there are no numbers on screen. I have found some which can add text using win32 or tkinter but no which actually can be changed in a loop
This code from How to display text on the screen without a window using Python is the closest i'ev gotten, but its not quite it.
import tkinter, win32api, win32con, pywintypes
label = Tkinter.Label(text='Text on the screen', font=('Times New Roman','80'), fg='black', bg='white')
label.master.overrideredirect(True)
label.master.geometry("+250+250")
label.master.lift()
label.master.wm_attributes("-topmost", True)
label.master.wm_attributes("-disabled", True)
label.master.wm_attributes("-transparentcolor", "white")
label.pack()
label.mainloop()
This wont allow me to change or remove the text after its been added