Shutdown my computer in x seconds

Here you are welcome to share your Push2Run cards

PLEASE NOTE:
If you are downloading a Push2Run card from here or anywhere else, please inspect it carefully before running it or any software associated with it. If you don't do this you may end up with seriously unwanted results.

When sharing a card, please leave any special instructions that are required for its use. For example, if additional software is needed to enable the card, you should leave a link to the program's official webpage.
Post Reply
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Shutdown my computer in x seconds

Post by RobLatour »

Showing off Push2Run's ability to use Regex groups, below is a card that will let you shut down your computer in a specific number of seconds.

With it you can say:

"OK Google, tell my computer to shut down in 25 seconds"
or
"OK Google, tell my computer to shut down 25 seconds"

and your computer will shut down in 25 seconds.

However,

"OK Google, tell my computer to shut down in several seconds"

will not match, as the Regex expression requires a specified number.

ss1.jpg
ss1.jpg (76.15 KiB) Viewed 4780 times
Shutdown_in_x_seconds.p2r
(604 Bytes) Downloaded 498 times


Thanks to forum user Ivo for suggesting the Regex syntax for the above!
Post Reply