diff --git a/Data/scripts.csv b/Data/scripts.csv index fc6ae7a0..f91f19ac 100644 --- a/Data/scripts.csv +++ b/Data/scripts.csv @@ -150,6 +150,7 @@ open-file-explorer.ps1, starts the Microsoft File Explorer open-recycle-bin.ps1, starts the File Explorer with the recycle bin folder play-beep.ps1, plays a beep sound play-files.ps1, plays the given audio files +play-happy-birthday.ps1, plays the Happy Birthday song play-mission-impossible.ps1, plays the Mission Impossible theme play-m3u.ps1, plays the given playlist (M3U file format) play-mp3.ps1, plays the given sound file (MP3 file format) diff --git a/README.md b/README.md index 189147df..d819dc37 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Mega Collection of PowerShell Scripts * [list-voices.ps1](Scripts/list-voices.ps1) - lists the installed text-to-speech (TTS) voices * [play-beep.ps1](Scripts/play-beep.ps1) - plays a beep sound * [play-files.ps1](Scripts/play-files.ps1) - plays the given audio files +* [play-happy-birthday.ps1](Scripts/play-happy-birthday.ps1) - plays the Happy Birthday song * [play-mission-impossible.ps1](Scripts/play-mission-impossible.ps1) - plays the Mission Impossible theme * [play-m3u.ps1](Scripts/play-m3u.ps1) - plays the given playlist (M3U file format) * [play-mp3.ps1](Scripts/play-mp3.ps1) - plays the given sound file (MP3 file format) diff --git a/Scripts/play-happy-birthday.ps1 b/Scripts/play-happy-birthday.ps1 new file mode 100644 index 00000000..2c768675 --- /dev/null +++ b/Scripts/play-happy-birthday.ps1 @@ -0,0 +1,42 @@ +<# +.SYNOPSIS + play-happy-birthday.ps1 +.DESCRIPTION + Plays the Happy Birthday song +.EXAMPLE + PS> .\play-happy-birthday.ps1 +.LINK + https://github.com/fleschutz/PowerShell +.NOTES + Author: Markus Fleschutz + License: CC0 +#> + +[System.Console]::Beep(1059.274, 300) +[System.Console]::Beep(1059.274, 200) +[System.Console]::Beep(1188.995, 500) +[System.Console]::Beep(1059.274, 500) +[System.Console]::Beep(1413.961, 500) +[System.Console]::Beep(1334.601, 950) + +[System.Console]::Beep(1059.274, 300) +[System.Console]::Beep(1059.274, 200) +[System.Console]::Beep(1188.995, 500) +[System.Console]::Beep(1059.274, 500) +[System.Console]::Beep(1587.117, 500) +[System.Console]::Beep(1413.961, 950) + +[System.Console]::Beep(1059.274, 300) +[System.Console]::Beep(1059.274, 200) +[System.Console]::Beep(2118.547, 500) +[System.Console]::Beep(1781.479, 500) +[System.Console]::Beep(1413.961, 500) +[System.Console]::Beep(1334.601, 500) +[System.Console]::Beep(1188.995, 500) +[System.Console]::Beep(1887.411, 300) +[System.Console]::Beep(1887.411, 200) +[System.Console]::Beep(1781.479, 500) +[System.Console]::Beep(1413.961, 500) +[System.Console]::Beep(1587.117, 500) +[System.Console]::Beep(1413.961, 900) +exit 0 \ No newline at end of file