The MouseShape function returns how the mouse pointer looks like.
Used to insert an advanced synchronization method. For example, if a text refresh within a window can only be dectected by the mouse shape changing from the hourglass to the standard arrow, MouseShape function allows to insert the correct synchronization (see example code below).
|Mouse shape||Return value|
'This script defines a synchronization function which waits until the hourglass has disappeared.
'If mouse shape is an hourglass, pause for 1 sec and loop
if mouseshape()=14 then
'Mouse shape is not anymore an hourglass, assign the value 1 to sortie variable, and so exit the loop
'Call example when a program loads many windows and so a simple UseWindow
'is not enough to be sure that all the windows are loaded.
Shell(Chr$(34)+"C:\Program Files (x86)\Norton AntiVirus\Navw32.exe"+Chr$(34),1)
'Test that the application is totally loaded.