View Single Post
930addict 930addict is online now
Registered
 
930addict's Avatar
 
Join Date: Jan 2005
Posts: 902
Garage
Windows system:
Put this in a file called whatever.ps1:

param($minutes = 60)

$myshell = New-Object -com “Wscript.Shell”

for ($i = 0; $i -lt $minutes; $i++) {
Start-Sleep -Seconds 50
$myshell.sendkeys(“{F15}”)
}

Put this in a file called whatever.bat:
powershell.exe -windowstyle hidden -file C:\whatever.ps1

When you leave your desk double-click the bat file.
Old 08-31-2015, 11:21 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #6 (permalink)