Make your own notification on windows using python.

                  Welcome to notification on windows


This is your own notification on windows using python. You import plyer, time.




import time
from plyer import notification

def notify(title, message):
notification.notify(
title=title,
message=message,
app_icon=None, # If you have an icon, specify the path here
timeout=10, # Notification will disappear after 10 seconds
)

def wait_until(target_time):
while True:
current_time = time.strftime("%H:%M", time.localtime())
if current_time == target_time:
break
time.sleep(1)

if __name__ == "__main__":
target_time = input("Enter the time in HH:MM format (e.g., 14:28): ")
title = input("Enter the title for the notification: ")
message = input("Enter the message for the notification: ")

wait_until(target_time)
notify(title, message)

Comments

Popular posts from this blog

Screen Recording using python.

wallpaper changer.

Find any color from image using python