<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1555" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello squeak professionals,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>in our process monitoring software we use a
background process to update the displayed values.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>breakFlag := false.<BR>delay := Delay
forMilliseconds: 10.<BR>Processor fork:
[<BR> [
breakFlag ] whileFalse:
[<BR>
backgroundProcess := true. "Process is now active
"<BR>
delay
wait.<BR> ........................................."calling
the GUI update methods displaying the measured values from the
process"</FONT></DIV>
<DIV><FONT face=Arial
size=2>
delay wait.</FONT></DIV>
<DIV><FONT face=Arial
size=2>
].<BR>
backgroundProcess := false.
"Process is going to terminate "<BR> ]
at: Processor userPriority - 5</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Processor is an instance of
ProcessScheduler.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Something in our GUI update software wastes memory
and over some days crashes the system. So the user has to stop the background
display process when leaving the system and to restart it when coming
back. We now want to automate this switching on and off of the GUI updates
by checking the screensaver status of windows. Our wish is to check in each
update cycle, whether the windows-screensaver is on, and depending on this
status, to update the GUI display or not.</FONT></DIV>
<DIV><FONT face=Arial size=2>Can anybody of you give us a hint, how to
check, whether windows has switched of the desktop-display and displaying the
screensaver, or is still displaying the desktop containing the squeak
window?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you very much.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Best regards </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Uwe</DIV></FONT></BODY></HTML>