AutoIt MouseGetCursor Function

The AutoIt MouseGetCursor Function is used to return the number of the current cursor.

Edited: 2015-01-15 22:09

The AutoIt MouseGetCursor Function is used to return the current cursor used, the returned value will be a number corresponding to the number of the cursor.

List of Cursors

The below is a list of cursor icons.

0

UNKNOWN (Includes pointing and grabbing hand icons)

1

APPSTARTING

2

ARROW

3

CROSS

4

HELP

5

IBEAM

6

ICON

7

NO

8

SIZE

9

SIZEALL

10

SIZENESW

11

SIZENS

12

SIZENWSE

13

SIZEWE

14

UPARROW

15

WAIT

16

HAND

AutoIt MouseGetCursor Examples

$CursorID = MouseGetCursor()
MsgBox(4096, "The Number of the Curser is: ", $CursorID)

You can also create aliases for the different numbers returned, this is done by inserting all the cursor names into an array, where each array item has a ID corresponding to the ID of the cursor icons.