mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-25 21:46:43 +01:00
Merge branch 'master' of github.com:fleschutz/PowerShell
This commit is contained in:
commit
6b4d4b418e
@ -56,7 +56,7 @@ Computer, open `name` website
|
||||
Computer, show `name` city
|
||||
--------------------------
|
||||
* launches the default Web browser with Google Maps at the given city.
|
||||
* replace `name` by: "Atlanta", "Barcelona", "Berlin", "Boston", "Cairo", "Cape Town", "Chicago", "Dallas", "Denver", "Dubai", "Dublin", "Frankfurt", "Hamburg", "Hong Kong", "Jerusalem", "Kansas", "Las Vegas", "Lissabon", "London", "Los Angeles", "Madrid", "Mexico", "Miami", "Montreal", "Moscow", "Munich", "New York", "Panama", "Paris", Rome", "San Francisco", "Seattle", "Singapore", "Sydney", "Tokyo", "Toronto", "Vienna", "Washington", "Zurich".
|
||||
* replace `name` by: "Atlanta", "Barcelona", "Berlin", "Boston", "Cairo", "Cape Town", "Chicago", "Dallas", "Denver", "Dubai", "Dublin", "Frankfurt", "Hamburg", "Hong Kong", "Jerusalem", "Kansas", "Las Vegas", "Lissabon", "London", "Los Angeles", "Madrid", "Mexico", "Miami", "Montreal", "Moscow", "Munich", "New York", "Panama", "Paris", Rome", "San Francisco", "Seattle", "Singapore", "Sydney", "Tokyo", "Toronto", "Tunis", "Vienna", "Washington", "Zurich".
|
||||
* when finished see "Computer, close `name` browser" to close the Web browser.
|
||||
|
||||
|
||||
|
@ -37,7 +37,7 @@ try {
|
||||
foreach ($Script in $Scripts) {
|
||||
$ScriptName = $Script.basename
|
||||
$Keyword = $ScriptName -replace "-"," "
|
||||
"serenade.global().command(`"$($WakeWord.toLower()) $Keyword`",async(api)=>{await api.focusOrLaunchApplication(`"$Application`");await api.typeText(`"$ScriptName.ps1`");await api.pressKey(`"return`");});" | Add-Content "$TargetFile"
|
||||
"serenade.global().command(`"$($WakeWord.toLower()) $Keyword`",async(api)=>{await api.focusApplication(`"$Application`");await api.typeText(`"$ScriptName.ps1`");await api.pressKey(`"return`");});" | Add-Content "$TargetFile"
|
||||
}
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
|
15
Scripts/show-tunis-city.ps1
Normal file
15
Scripts/show-tunis-city.ps1
Normal file
@ -0,0 +1,15 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Shows Tunis city in Google Maps
|
||||
.DESCRIPTION
|
||||
This script launches the Web browser with Google Maps at Tunis city (Tunisia).
|
||||
.EXAMPLE
|
||||
PS> ./show-tunis-city
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
& "$PSScriptRoot/open-default-browser.ps1" "https://www.google.com/maps/place/Tunis"
|
||||
exit 0 # success
|
Loading…
Reference in New Issue
Block a user