📌  相关文章
📜  用于禁用屏幕保护程序的 powershell 脚本 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:56.997000             🧑  作者: Mango

代码示例1
#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(".")
}