'Windows10 Powershell - Alarm, World Clock, Timer, Stopwatch?
Windows 10 has a decent little Application that lets you set multiple Alarms, World Clocks, Timers and Stopwatches.
Powershell also has some Stopwatch functionality; for instance like this:
$sw = [system.diagnostics.stopwatch]::startNew()
But I was disappointed to see that the two things aren't the same thing.
Is there a Powershell way of setting up a (say) a Timer for (say) 30 Minutes that will show up in the 'Timer' tab of the UI ? And therefore also let you watch the timer fullscreen, hear an alarm when it's finished etc ?
EDIT: This is the Application / UI I mean:
Solution 1:[1]
Unless the Alarm & Clock application has an API or startup parameters of some kind, what you're asking for is not possible. You'd have to write your own application.
This answer from SuperUser says that two registry entries contain JSON files which define what the timers or alarms are. Your best bet would be to reverse engineer and modify those JSON settings and then restart or refresh the Alarm & Clock app somehow.
Solution 2:[2]
For me it works like this:
Start-Process -FilePath explorer -ArgumentList shell:Appsfolder\Microsoft.WindowsAlarms_8wekyb3d8bbwe!App
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Bacon Bits |
Solution 2 | Egin |