StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Edward  
#1 Posted : Thursday, May 23, 2024 5:26:35 PM(UTC)
Edward

Rank: Newbie

Reputation:

Groups: Approved
Joined: 4/8/2024(UTC)
Posts: 2
Kazakhstan

Hello!

I would like to know how to put my PC to sleep using the Z gesture. Could you please provide step-by-step instructions on what kind of script to use and where to input it?

Thank you in advance!
Rob  
#2 Posted : Friday, May 24, 2024 1:31:48 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,382
United States
Location: Tampa, FL

Thanks: 28 times
Was thanked: 430 time(s) in 363 post(s)
There's no built-in method to put the PC to sleep, but you can use a utility to execute from S+.

https://learn.microsoft.com/en-au/sysinternals/downloads/psshutdown

Then you should be able to execute it:
Code:
//This code below assumes PsShutdown is in C:\Utilities - change path as needed
sp.Run("C:\\Utilities\\psshutdown -d -t 0");

Users browsing this topic
Guest
Similar Topics
S+ and Windows Sleep Mode (General Discussion)
by randomConstant 2/26/2022 6:41:49 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.