473,387 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

change cursor to an hourglass when a VBscript runs

When a vbscript runs, is it possible to change the cursor to an hourglass until the script has completed running? Please reference the following simple script:

(change cursor to hourglass here)
For I = 0 to 1000000
I = I + 1
Next
(change cursor back to default here)
Apr 13 '07 #1
3 14895
Killer42
8,435 Expert 8TB
When a vbscript runs, is it possible to change the cursor to an hourglass until the script has completed running? Please reference the following simple script:

(change cursor to hourglass here)
For I = 0 to 1000000
I = I + 1
Next
(change cursor back to default here)
In VB6, I would set Screen.MousePointer to value vbHourglass before, and value vbDefault afterward.

Don't know whether this will work for you, or not. (Note, in VB6, you might have to use Refresh and/or DoEvents before the change would be visible.)
Apr 13 '07 #2
Thanks for the response. However, I put this in a VBScript file but it gives the following error message:

Object required: "Screen"

The file name is "Hourglass.vbs" and has the following code.

Screen.Mousepointer = vbHourglass
for I= 1 to 10000
i = i + 1
next
Screen.Mousepointer = vbDefault
(end of code)



In VB6, I would set Screen.MousePointer to value vbHourglass before, and value vbDefault afterward.

Don't know whether this will work for you, or not. (Note, in VB6, you might have to use Refresh and/or DoEvents before the change would be visible.)
Apr 17 '07 #3
Killer42
8,435 Expert 8TB
Thanks for the response. However, I put this in a VBScript file but it gives the following error message:

Object required: "Screen"
Oops! I guess this is one of the differences between VB and VBScript. Sorry, I'm not familiar with VBScript. I'd suggest you try the the reference at Microsoft, and do some digging.

It's possible that VBScript simply cannot do what you want, but don't give up without a fight.
Apr 17 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: P Srinivasulu | last post by:
When Mysql runs on machine with multiple NIC's. Mysql server takes the IP Address that we specify in the configuration file. This IP Address may or may not be a primary IP Address of that machine....
3
by: kaeli | last post by:
Hey all, This is a nitpick that I'd like to fix if possible... I have a form that submits to a page that does some intense DB queries, so the page takes about 30-45 seconds to load. Using Win2K,...
2
by: alex p | last post by:
I have create a website that links to other websites, using a response.redirect("URL_OF_WEBSITE") For some reason I have managed to get on top at Google, with these pages that only redirect to a...
8
by: Eddie | last post by:
Hi All, I just want to change the mouse cursor during a process. I want a hourglass... How may I do it ? Thx
4
by: GatorBait | last post by:
Hi, I have created a class library that I call from within my program using late binding. The class library contains a form and I allow the user to do different actions on the form that is part of...
1
by: mtczx232 | last post by:
A. I remember microsoft add some features about WaitCursor in Window.Forms, but I not find it now? B. I have some Try..Catch in some module and it's suppose to be long time. I need to change...
0
by: =?Utf-8?B?RW1pbA==?= | last post by:
Hi all, I’m very very new in C#/WPF world, but this fascinates me more and more. Now I must find a way how our future application will use the localization / globalization. I did all the steps...
6
by: wil1cad2 | last post by:
I'm using VB studio 2005. Pls help to change cursor to HourGlass when u press a button and wait for calcualtion the result. Ex: If btnCalculate.Enabled = True Then ...
1
by: Stefan Tudoran | last post by:
Ok..so i've just started to learn C# and i want to make a button to change his position when i get the cursor over
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.