Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

powershell script to disable screensaver

#The below script will trigger dot key every 60 secs

param($minutes = 60) #//Duration. Until 60 mins below script will run

$myshell = New-Object -com "Wscript.Shell"

for ($i = 0; $i -lt $minutes; $i++) {
  Start-Sleep -Seconds 60 #//every 60 secs dot key press
  $myshell.sendkeys(".")
}
Comment

PREVIOUS NEXT
Code Example
Shell :: install gunicorn 
Shell :: install webpack cli 
Shell :: bash check if number is greater than 
Shell :: lxc delete container 
Shell :: speedtest cli ubuntu 
Shell :: Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located 
Shell :: ubuntu remove kubelet 
Shell :: npm does not support Node.js v10.24.0 
Shell :: voice recorder for ubuntu 
Shell :: npm dev dependencies 
Shell :: yarn install uuid 
Shell :: install xmake 
Shell :: conda install lightgbm 
Shell :: homebrew install git 
Shell :: chocolatey version 
Shell :: linux give permission to directory 
Shell :: connection failed blueman.bluez.errors.dbusfailederror protocol not available 
Shell :: list all users linux 
Shell :: kubectl to show label of pod 
Shell :: uninstall figma from linux distributions 
Shell :: Failed at the node-sass@4.7.2 postinstall script. 
Shell :: uninstall vscode ubuntu 
Shell :: docker remove logs 
Shell :: file search linux by text 
Shell :: how to check running services in linux 
Shell :: git create empty branch 
Shell :: install scikit learn windows 
Shell :: ubuntu get pid of process 
Shell :: how to get list of files in zip linux 
Shell :: linux see remaining disk space 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =