SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Running job a "idle" time.

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Running job a "idle" time.
Author Message
Marcel de Haan



Joined: 06 Apr 2001
Posts: 3

Post Running job a "idle" time. Reply with quote

Greetings,

Another question I have is about running jobs at user "idle" time. I am testing a job which should run after (say) 15 minutes of idle time. In order to test this, I set my screensaver to set in after 1 minute. After this minute expires the screensaver sets in, but the job is not started. What could be the problem?

Many thanks,

Marcel de Haan.

Fri Apr 06, 2001 6:13 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Running job a "idle" time. Reply with quote

Which Windows version do you use?

In the Windows NT/2000 only the foreground window is notified by the Operation System when screen saver is started. Therefore the "idle" job will start only if the 24x7 is running in the foreground. There are several workarounds available but the implementation depends on the version of Windows.

: Greetings,

: Another question I have is about running jobs at user "idle" time.
: I am testing a job which should run after (say) 15 minutes of idle time.
: In order to test this, I set my screensaver to set in after 1 minute.
: After this minute expires the screensaver sets in, but the job is not
: started. What could be the problem?

: Many thanks,

: Marcel de Haan.

Fri Apr 06, 2001 8:46 am View user's profile Send private message
Marcel de Haan



Joined: 06 Apr 2001
Posts: 3

Post Re: Running job a "idle" time. Reply with quote

: Which Windows version do you use?

Currently I use Windows 98.

: In the Windows NT/2000 only the foreground window is notified by the
: Operation System when screen saver is started. Therefore the
: "idle" job will start only if the 24x7 is running in the
: foreground. There are several workarounds available but the implementation
: depends on the version of Windows.

Fri Apr 06, 2001 10:08 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Running job a "idle" time. Reply with quote

: Currently I use Windows 98.

On Windows 98 you can use the following technique:
Setup your job as a script to run all day every minute
In the script put something like the following

Dim bActive, boolean
// Win API constant: SPI_GETSCREENSAVERRUNNING = 60

Call "user32.dll", "SystemParametersInfo", "uuBu", FALSE, 60, 0, bActive, 0
ifThen bActive, DO_SOMETHING
.....

if bActive is TRUE then it indicates that the screen saver is running

Fri Apr 06, 2001 11:43 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.