cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Who rated this post

L2 Linker

In case of Windows OS, you can use windows built-in msg command like: msg * "Your text".  And you can incorporate it in python script like: 

#!/usr/bin/python3
import subprocess

# Define the message text
message = "Your text"

# Run the msg command
try:
    subprocess.run(["msg", "*", message], check=True, shell=True)
    print("Message sent successfully.")
except subprocess.CalledProcessError as e:
    print(f"Failed to send message: {e}")

View solution in original post

Who rated this post