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)
3 14949
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.MousePoi nter 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.)
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.Mousepoi nter = vbHourglass
for I= 1 to 10000
i = i + 1
next
Screen.Mousepoi nter = vbDefault
(end of code)
In VB6, I would set Screen.MousePoi nter 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.)
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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. So we specify
secondary IP Address for the Mysql server. It listens in that IP
Address.
When Mysql client from the same machine connects to that server, Mysql
Client is treated,as if the connection is coming from the different
host. i.e. The...
|
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, IE6, when
the submit button is clicked, it looks like nothing is happening (unless
you read the status bar and see the page opening text). Yet Netscape
shows a little hourglass, indicating that processing is occurring. Is
there a simple way to...
|
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 website of an affiliate program of mine.
The problem now is that the affiliate program thinks that Google is the
referer instead of me. What can I do to prevent this.
Is there a way to somehow alter the change the HTTP_REFERER when I use...
|
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
|
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 the class
library dll. I am having a hard time figuring out how to change the
cursor between an hourglass and arrow for those time periods when work
is being done. I have tried
Cursor = Cursors.WaitCursor and Cursor = Cursors.Arrow, but the...
| |
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 cursor to hourglass. but I have two problem:
1. the function in module not have access to form, (unless I send me
into the module function, but I not like it)
2. if occur err and control jump to catch block, I need to write extra
code to return...
|
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 I found in MSDN to create this (UID,
LocBaml, satellite, etc.) and I it works perfect (a little bit complicated
but anyway it works). The application starts in the OS culture starts, also
if I put at the beginning this code:
public App()
{
|
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
Screen.MousePointer = vbHourglass
Else
Screen.MousePointer = vbDefault
End If
I got some thought above but doesn't work.
|
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
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |