From 729054f0d438f5739e0a88749f8ed74981ac7f39 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sun, 21 Nov 2021 12:01:30 +0100 Subject: [PATCH] Rename to open/close-*-app.ps1 --- Docs/VoiceControl.md | 25 +++++++++++-------- ...alculator.ps1 => close-calculator-app.ps1} | 4 +-- ...lose-netflix.ps1 => close-netflix-app.ps1} | 4 +-- ...calculator.ps1 => open-calculator-app.ps1} | 4 +-- ...{open-netflix.ps1 => open-netflix-app.ps1} | 4 +-- 5 files changed, 22 insertions(+), 19 deletions(-) rename Scripts/{close-calculator.ps1 => close-calculator-app.ps1} (73%) rename Scripts/{close-netflix.ps1 => close-netflix-app.ps1} (84%) rename Scripts/{open-calculator.ps1 => open-calculator-app.ps1} (86%) rename Scripts/{open-netflix.ps1 => open-netflix-app.ps1} (81%) diff --git a/Docs/VoiceControl.md b/Docs/VoiceControl.md index 0d24de8f..9377868e 100644 --- a/Docs/VoiceControl.md +++ b/Docs/VoiceControl.md @@ -13,7 +13,7 @@ Usage ----- 1. Launch *Serenade* and click the Pause button to enable Listening mode. 2. Launch *Windows Terminal* and click into the window. -3. Say: `Computer, open calculator` - this executes the PowerShell script `open-calculator.ps1` to launch the calculator application. +3. Say: `Computer, open calculator app` - this executes the PowerShell script `open-calculator-app.ps1` to launch the calculator application. More supported voice commands are: @@ -22,46 +22,49 @@ More supported voice commands are: ------------------------------ * this launches the given Web browser. * replace NAME by: "Chrome", "Edge", or "Firefox". -* use: *[wake word], close NAME browser* to stop the Web browser afterward. +* when finished use: *[wake word], close NAME browser* to stop the Web browser. -[wake word], open NAME ----------------------- +[wake word], open NAME app +-------------------------- * this launches the given application. -* replace NAME by: "calculator", "Netflix". -* to close the application, use: *[wake word], close NAME* +* replace NAME by: "calculator", or "Netflix". +* when finished use: *[wake word], close NAME* to stop the application. [wake word], open NAME drive ---------------------------- * this launches the File Explorer with the given drive. * replace NAME by: "C:", "D:", "E:", "F:", or "M:". -* to close the File Explorer, use: *[wake word], close file explorer* +* when finished use: *[wake word], close file explorer* to stop the File Explorer. [wake word], open NAME folder ----------------------------- * this launches the File Explorer with the given folder. * replace NAME by: "downloads", "dropbox", "home", "music", "pictures", "repos", or "videos". -* to close the File Explorer, use: *[wake word], close file explorer* +* when finished use: *[wake word], close file explorer* to stop the File Explorer. [wake word], open NAME website ------------------------------ -* this launches the default browser with the given website. +* this launches the default Web browser with the given website. * replace NAME by: "Amazon", "Baidu", "BBC", "CDC", "CIA", "CNN", "eBay", "Facebook", "FBI", "GitHub", "Instagram", "Microsoft", "NASA", "NBC", "Pinterest", "Pixabay", "Slashdot", "Tesla", "Twitter", "UFA", "Unsplash", "Walmart", "WhatsApp", "White House", "Wikipedia", "Wired", or "Yahoo". +* when finished see "close NAME browser" to stop the Web browser. [wake word], show NAME city --------------------------- -* this launches the default browser with Google Maps showing the given city. +* this launches the default Web browser with Google Maps showing the given city. * replace NAME by: "Atlanta", "Barcelona", "Berlin", "Boston", "Cairo", "Cape Town", "Chicago", "Dallas", "Dubai", "Dublin", "Frankfurt", "Hamburg", "Hong Kong", "Jerusalem", "Las Vegas", "Lissabon", "London", "Los Angeles", "Madrid", "Miami", "Moscow", "Munich", "New York", "Paris", Rome", "San Francisco", "Seattle", "Singapore", "Sydney", "Tokyo", "Toronto", or "Washington". +* when finished see "close NAME browser" to stop the Web browser. [wake word], play radio NAME ---------------------------- -* this launches the default browser and tunes into an internet radio station stream. +* this launches the default Web browser and tunes into an internet radio station stream. * replace NAME: by "Arabella", "Bob", "Galaxy", "7", "Gong", "Kiss Kiss", "N-JOY", ... +* when finished see "close NAME browser" to stop the Web browser. [wake word], play NAME sound diff --git a/Scripts/close-calculator.ps1 b/Scripts/close-calculator-app.ps1 similarity index 73% rename from Scripts/close-calculator.ps1 rename to Scripts/close-calculator-app.ps1 index 8197941b..1bb4c839 100755 --- a/Scripts/close-calculator.ps1 +++ b/Scripts/close-calculator-app.ps1 @@ -4,7 +4,7 @@ .DESCRIPTION This script closes the calculator application gracefully. .EXAMPLE - PS> ./close-calculator + PS> ./close-calculator-app .NOTES Author: Markus Fleschutz · License: CC0 .LINK @@ -13,7 +13,7 @@ TaskKill /im Calculator.exe /f /t if ($lastExitCode -ne "0") { - & "$PSScriptRoot/speak-english.ps1" "Sorry, can't close calculator" + & "$PSScriptRoot/speak-english.ps1" "Sorry, can't close the calculator application" exit 1 } exit 0 # success diff --git a/Scripts/close-netflix.ps1 b/Scripts/close-netflix-app.ps1 similarity index 84% rename from Scripts/close-netflix.ps1 rename to Scripts/close-netflix-app.ps1 index 555f8e44..f47345ba 100755 --- a/Scripts/close-netflix.ps1 +++ b/Scripts/close-netflix-app.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Closes the Netflix application + Closes the Netflix app .DESCRIPTION This script closes the Netflix application gracefully. .EXAMPLE - PS> ./close-netflix + PS> ./close-netflix-app .NOTES Author: Markus Fleschutz · License: CC0 .LINK diff --git a/Scripts/open-calculator.ps1 b/Scripts/open-calculator-app.ps1 similarity index 86% rename from Scripts/open-calculator.ps1 rename to Scripts/open-calculator-app.ps1 index 6b9d0468..050a3028 100755 --- a/Scripts/open-calculator.ps1 +++ b/Scripts/open-calculator-app.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Starts the calculator app + Launches the calculator app .DESCRIPTION This script launches the calculator application. .EXAMPLE - PS> ./open-calculator + PS> ./open-calculator-app .NOTES Author: Markus Fleschutz · License: CC0 .LINK diff --git a/Scripts/open-netflix.ps1 b/Scripts/open-netflix-app.ps1 similarity index 81% rename from Scripts/open-netflix.ps1 rename to Scripts/open-netflix-app.ps1 index 4c8338f2..f9181ee5 100755 --- a/Scripts/open-netflix.ps1 +++ b/Scripts/open-netflix-app.ps1 @@ -1,10 +1,10 @@ <# .SYNOPSIS - Starts the Netflix app + Launches the Netflix app .DESCRIPTION This script launches the Netflix application. .EXAMPLE - PS> ./open-netflix + PS> ./open-netflix-app .NOTES Author: Markus Fleschutz · License: CC0 .LINK