DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Change mouse cursor appearence in script

Is it possible to change the appearance of the mouse cursor in a script?

A couple of the scripts I've created takes a little time to execute, so I'd like to change the cursor to the hourglass while waiting for the script to finish (and then change it back to normal at the end of the script).

Are the other ways of letting the user know that a little patience is required?
0 Kudos
Message 1 of 4
(4,066 Views)
Hi Salte,

The following commands show a progress display in the status bar:

Call AutoLoopInit()
Call Pause(10) 'Replace this line by your time-consuming task
Call LoopDeInit()
Call Pause(5) 'Just to see what happens when the script stops

In the user dialog boxes you could use the method BeginWaitCursor to display the mouse cursor as an hourglass.

Hope this helps,
Ralf
0 Kudos
Message 2 of 4
(4,055 Views)

Hi salte,

I like to use the following code, while waiting for a scipt:

call MsgBoxDisp("Please wait...","MB_NoButton","MsgTypeNote",,,"YES")

' your code that takes the time

call MsgBoxCancel

greets Andreas

Volkswagen AG
Wolfsburg - Germany
0 Kudos
Message 3 of 4
(4,038 Views)
Thanks for your suggestions.

I'll probably use one or both of them in some way.
0 Kudos
Message 4 of 4
(4,032 Views)