Schedule a task for when computer is idle

Balthier

New member
Hello guys,

I'm having difficulties scheduling a task for when computer is idle. What I want to do is run a task after the computer has been idle for five minutes. I've tried creating a scheduled task in different ways, which will do this, but to no avail.

I go to Task scheduler to create a task:

General Tab
Give the task a name, put the check box to run with the highest priv., and configure it for Win 7.

Triggers Tab
New, Begin the task on idle, Repeat task for 15 minutes indefinitely, Enabled.

Action Tab
Start whatever program.

Conditions Tab
Start the task only if computer is idle for 5 minutes. Do not wait for idle.

The settings I have not described stay default.

Now from what I can gather from this is that every 15 minutes, the computer will run the task if the computer stays idle for 5 minutes. Say, I start the computer and leave it like that, then the task should run after 5 minutes. Then after 10 minutes, it will once again start checking to run the task.

But this just does not work. If I leave the computer idle for even 7 minutes after startup, nothing happens. What am I doing wrong?
 

My Computer

OS
Windows 7 Ultimate x64

My Computer

Computer Manufacturer/Model Number
packard bell IXTREME M5722
OS
Operating System : Windows 7 Home Premium Edition 6.01.7600 SP1 (x64)
CPU
Processor : Intel Core 2 Quad Q8300 @ 2500 MHz
Motherboard
Mainboard : Packard Bell (Acer EG43M )
Memory
Physical Memory :8GB Corsair4x 2GB 800MHz C5 DDR2
Graphics Card(s)
Video Card : XFX 6700 AMD
Monitor(s) Displays
Maestro 234DL - BenQ V2220 - BenQ VW2420H
Screen Resolution
Current Display :1920x1080p pixels at 60 Hz in HD LED
Hard Drives
Hard Disks : WDC (1000 GB)
Drive C: (Hard Disk) : 428 GB available on 491 GB
Drive D: (Hard Disk) : 426 GB available on 492 GB
SAMSUNG spinpoint HD103SJ 1000.2 GB
(X 2) KINGSTON SSD NOW V 30GB
PSU
XFX ProSeries 550W PSU
Case
PACKARD BELL IXTREME
Cooling
System Blower Current: 150mA Air Flow16CFM ;Akasa 90mm rear
Keyboard
Gigabyte Aivia K8100
Mouse
TRUST-Wireless Laser Mouse - Carbon edition MI-7770C
Internet Speed
TP-LINK > TL-WN951N / AV500 Gigabit Powerline Adapters
Browser
chrome dev
Other Info
EXTRA COOLING>(FAN CONTROLLER) PC Bay Cooler 3 x 40mm fans; Akasa AK-HD-BL Blue hard drive cooler 2 x 40 mm fan 4500 rpm 29.7 dBA
Bios> American Megatrends Inc.
Version : P01-A1
Date : 08/31/2009
Thanks for the suggestions guys, but I got mighty tired of the task scheduler, and went for a quick fix.

I downloaded a batch to exe converter, then converted the batch file to exe, renamed the .exe to .scr extension, and set the file as screensaver. Now the screen saver is absolutely awesome in every way possible, because it runs the task just as I want it to. :D

Conclusion, Screen Saver is king, Task Scheduler is overrated (when it comes to running tasks after x minutes of idle time). But it works great for sending the computer to sleep at a specified time, and then waking it up again after a few hours.
 

My Computer

OS
Windows 7 Ultimate x64
It is extremely difficult to get even the simplest of tasks (such as one to display a single word message) to work if the trigger condition is based on idle time. The reason for this is that the computer is very rarely (if at all) idle long enough in one go to satisfy the trigger condition. For example, you might have the task set to trigger when the system has been idle for 5 minutes. Let's suppose that the system is 100% idle for 4 mins 59 secs. At that point, there is brief system activity lasting just a few hundredths of a second. That is enough to cause the trigger condition not to be met, and so the task fails to run.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
Yup, thats what I found too. At least with the screen saver, it usually does kick in. And if you want to have a regular screen saver, you can just have the batch call it up at the end (or at the start I presume) from c:\windows\system32\nameofscreensaver.scr.

Btw, here is the batch file I've created (window will be minimized)

Code:
if not "%minimized%"=="" goto :minimized
set minimized=true
start /min cmd /C "%~dpnx0"
goto :EOF
:minimized
TASKKILL /F /IM nameoftask.exe /FI "STATUS eq RUNNING"
TASKKILL /F /IM nameoftask.exe /FI "STATUS eq RUNNING"
TASKKILL /F /IM nameoftask.exe /FI "STATUS eq RUNNING"
start iexplore

If you want to completely hide the cmd window from showing, you can have this vbs call up the batch file

Code:
Const HIDDEN_WINDOW = 12
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objStartup = objWMIService.Get("Win32_ProcessStartup")
Set objConfig = objStartup.SpawnInstance_
objConfig.ShowWindow = HIDDEN_WINDOW
Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process")
errReturn = objProcess.Create("nameofbatchfile.bat", null, objConfig, intProcessID)

Just remember to either put the batch file in c:\windows\system32, or edit the vbs to include the path where you want to call the batch file from. Obviously you can use this vbs to hide any process/application.
 

My Computer

OS
Windows 7 Ultimate x64
Hi, wonder if you might help me. i used your quick fix succesfully. except i cant get it to run invisibly. i keep
getting the prompt splash. any help would be greatly appreciated. please as detailed as possible. im not as
experienced as you :)
 

My Computer

OS
windows 7 64 bit
A year later . . .

START /C <command>

(or something involving a /C switch?)

==OR==

Use nircmdc (free tool) along with a set window title, like this;

From a batch, name the window that you want to hide:

TITLE hidethis

Then:

nircmdc win hide ititle hidethis

The latter may momentarily flash the window.

:cool:
 

My Computer

OS
Windows 7
Back
Top