How can I change system cursor to wait (hourglass) during WScript execution
(not in browser)

Tnx

RE: Change cursor by v-wdxu

v-wdxu
Mon Jan 19 20:28:19 CST 2004

Hi Tamir,

From my understanding, when you start to run a time-consuming script code,
you are going to change the system cursor.

WshShell object of Windows script host provides access to the native
Windows shell. However, so far as I know, there is no method or property
for us to set the system cursor in this object. This means we can't perform
this configuration from the pure script side.

I'd suggest there are two workarounds for you.
1) create one component which is used to control the system cursor. Then
you can create one instance of this compnent and set the system cursor in
the script code.
2) create one utility to control the system cursor, then run this utility
with the Run method of WshShell object.

Furthermore, it is recommanded for you to use C++ language to create the
component or utility in this scenario, which will be simple for you to
control the system cursor. Visual Basic will not be very convenient for
this development.

Please feel free to let me know if you have any further questions. I am
standing by to be of assistance.

Does this answer your question? Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.