Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1275
  • Last Modified:

Hourglass in VB Script

In VB script, what is the command to turn the hourglass on and turn the hourglass off?

Thanks in advance,

krameje
0
Yoink
Asked:
Yoink
  • 4
  • 2
  • 2
  • +4
1 Solution
 
dustybrynCommented:
screen.mousepointer=vbhourglass 'on
screen.mousepointer= vbdefault 'off
0
 
YoinkAuthor Commented:
dustybryn, I am getting an "Object Required" error message.  Does screen need to be declared and set?
0
 
dustybrynCommented:
Sorry, didn't read the question properly so I gave you the answer in VB. Have a look at the following for VBScript,

http://sourceforge.net/snippet/download.php?type=snippet&id=100396
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
EDDYKTCommented:
Try
 document.body.style.cursor="wait"

if you want to use asp

if in .vbs, I don't think you can
0
 
TooKoolKrisCommented:
The only way I know to do this is in IE. This will turn the cursor to the hourglass while the script is running. To turn it back change the "wait" to "default". This will create a small window and change the cursor to the hourglass for 5 seconds then close the window.

Set objIE = CreateObject("InternetExplorer.Application")
objIE.navigate "file://c:\test.htm"
objIE.left=200
objIE.top=200
objIE.height=175
objIE.width=450
objIE.menubar=0
objIE.toolbar=0
objIE.addressbar=0
objIE.statusbar=0
objIE.visible=1

Set objDocument = objIE.Document
objDocument.body.style.cursor = "wait"
Wscript.Sleep 5000
objIE.Quit
0
 
Arthur_WoodCommented:
where are you trying to use the VBScript?  Is this for an ASP page, or in Outlook? Or perhap[s somewhere else?

AW
0
 
YoinkAuthor Commented:
Arthur, we are launching the VBScript files from an intranet site.  We use this site to distribute various databases within our organization.  Having the hourglass appear is a "nice to have," since some of our users are extremly click happy.
0
 
Arthur_WoodCommented:
you might be better off issueing an Alert('This may take a while') type of message.

Just a thought.

AW
0
 
YoinkAuthor Commented:
Arthur, we already have a message box that appears letting the user know the download is in process, but there are the select few who lack patience.

I guess I do not understand why this is so difficult since in VBA, enabling/disabling the hourglass is a matter of using one line of code.
0
 
YoinkAuthor Commented:
CleanupPing,

Could you please refund the points?  I was unable to get any of the above suggestions to work.

Thanks in advance,

Yoink
0
 
DanRollinsCommented:
Yoink, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Refund points and save as a 0-pt PAQ.
    *** several suggestions are PAQworthy

Dan Rollins -- EE database cleanup volunteer
0
 
CetusMODCommented:
PAQed, with points refunded (50)

CetusMOD
Community Support Moderator
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now