Water Reminder Script in Python | 3 Lines of Code

Опубликовано: 13 Июль 2026
на канале: Game Of Codes
772
9

This video is on a simple python script that will notify you in a certain time interval to drink water or take a break from your laptop.

Github link: https://github.com/jithurjacob/Window...
code:
import time
from win10toast import ToastNotifier
while True:
time.sleep(5) #Here Provide your time interval in second. For the test purpose I am giving it 5sec interval
toaster = ToastNotifier()
toaster.show_toast("Hello World!!!","Take a small break from your laptop",duration=3) #This 10 sec is the interval of notification active in screen