This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C456AC.A9CFFB80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

My computer (running XP Home) is set to enter standby mode after 20 =
minutes of inactivity.=20

I have a background (vbscript) script running, which works in =
conjunction with a background activex object (that makes a couple of API =
calls), that works fine when the computer is 'active', so to speak, but =
fails mysteriously (stopping wscript.exe ) without error message =
whenever the computer enters standby mode.

Can anyone think of a reason that the script fails as soon as standby =
mode sets in (bearing in mind that other applications running resume =
functioning just fine after rewaking the computer) or failing that is =
there a test within a script that can determine whether a computer is =
awake or not?

Thanks for any pointers in the right direction

Jon
------=_NextPart_000_000A_01C456AC.A9CFFB80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial>My computer (running XP Home) is set to enter =
standby mode=20
after 20 minutes of inactivity. </FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>I have a background (vbscript) script running, =
which works=20
in conjunction with a background activex object (that makes a couple of =
API=20
calls), &nbsp;that works fine when the computer is 'active', so to =
speak, but=20
fails mysteriously (stopping wscript.exe ) without error =
message&nbsp;whenever=20
the computer enters standby mode.</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>Can anyone think of a reason that the script =
fails as soon=20
as standby mode sets in (bearing in mind that other applications running =
resume=20
functioning just fine after rewaking the computer) or failing that is =
there a=20
test within a script that can determine whether a computer is awake or=20
not?</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>Thanks for any pointers in the right=20
direction</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>Jon</FONT></DIV></BODY></HTML>

------=_NextPart_000_000A_01C456AC.A9CFFB80--

Re: VBScript and Standby mode by name

name
Thu Jun 24 02:00:47 CDT 2004

This is a multi-part message in MIME format.

------=_NextPart_000_002A_01C45997.72B959A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Explorer starts,

anything after that probably is piped into other exe,dll mode then

=========

"One" has to draw a line somewhere.


+++++++++++++++++

You can go to microsoft.public.de.german.scripting.wsh

to brush up your german.

Their "find IP address" under .bat or "simulated dos"

FOR /F "tokens=2-4 delims=\ " %%i in ('ipconfig ^|
find "10.128.1"') do (XXX)

may work for you. I use the one from Michael/group and also have written my
own.

+++++++++++++++++

Explorer pretty much is your 'visual' window,
and what windows does not see, is probably not there, so to speak.

==========

There should be a registry setting that allows a 'switch' which should
invoke the windows listener to act for changes.

However on XP and later system for script to control standby, I would not be
surprised for
'changes'. Really HOW is the PC supposed to know,

Kicking the box or pulling an asp script?

It is like putting a burning candle on the monitor and expect the machine to
act
on blowing.









"Jon" <email@email.com> wrote in message
news:%231xafRqVEHA.2908@TK2MSFTNGP10.phx.gbl...
My computer (running XP Home) is set to enter standby mode after 20
minutes of inactivity.

I have a background (vbscript) script running, which works in conjunction
with a background activex object (that makes a couple of API calls), that
works fine when the computer is 'active', so to speak, but fails
mysteriously (stopping wscript.exe ) without error message whenever the
computer enters standby mode.

Can anyone think of a reason that the script fails as soon as standby mode
sets in (bearing in mind that other applications running resume functioning
just fine after rewaking the computer) or failing that is there a test
within a script that can determine whether a computer is awake or not?

Thanks for any pointers in the right direction

Jon

------=_NextPart_000_002A_01C45997.72B959A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Explorer starts,</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>anything after that probably is piped into other =
exe,dll mode=20
then</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>"One" has to&nbsp;draw a line =
somewhere.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>+++++++++++++++++</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>You can go to <FONT=20
size=3D2>microsoft.public.de.german.scripting.wsh</FONT></FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>to brush up your german.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Their "find IP address" under .bat or =
"simulated&nbsp;=20
dos"</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV>FOR /F "tokens=3D2-4 delims=3D\ " %%i in ('ipconfig ^| <BR>find =
"10.128.1"') do=20
(XXX)</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>may work for you. I use the one from Michael/group =
and also=20
have written my own.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>+++++++++++++++++</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Explorer pretty much is your 'visual'=20
&nbsp;window,</FONT></DIV>
<DIV><FONT size=3D2>and what windows does not see, is probably not =
there, so to=20
speak.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>There should be a registry setting that allows a =
'switch'=20
which should</FONT></DIV>
<DIV><FONT size=3D2>invoke the windows listener to act for =
changes.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>However on XP and later system for script to control =
standby,=20
I would not be surprised for</FONT></DIV>
<DIV><FONT size=3D2>'changes'. Really HOW is the PC supposed to =
know,</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Kicking the box or pulling an asp =
script?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>It is like putting a burning candle on the monitor =
and expect=20
the machine to act</FONT></DIV>
<DIV><FONT size=3D2>on blowing.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Jon" &lt;<A =
href=3D"mailto:email@email.com">email@email.com</A>&gt; wrote=20
in message <A=20
=
href=3D"news:%231xafRqVEHA.2908@TK2MSFTNGP10.phx.gbl">news:%231xafRqVEHA.=
2908@TK2MSFTNGP10.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial>My computer (running XP Home) is set to enter =
standby=20
mode after 20 minutes of inactivity. </FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>I have a background (vbscript) script running, =
which=20
works in conjunction with a background activex object (that makes a =
couple of=20
API calls), &nbsp;that works fine when the computer is 'active', so to =
speak,=20
but fails mysteriously (stopping wscript.exe ) without error=20
message&nbsp;whenever the computer enters standby mode.</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>Can anyone think of a reason that the script =
fails as=20
soon as standby mode sets in (bearing in mind that other applications =
running=20
resume functioning just fine after rewaking the computer) or failing =
that is=20
there a test within a script that can determine whether a computer is =
awake or=20
not?</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>Thanks for any pointers in the right=20
direction</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>Jon</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_002A_01C45997.72B959A0--