函数参考


MouseGetCursor

返回当前鼠标指针光标的ID.

MouseGetCursor ( )

参数

None.

返回值

返回的指针 ID 编号的意义:
    0 = UNKNOWN(未知,包括指针和手型图标)
    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(手型)

注意/说明

None.

相关

MouseGetPos

示例/演示


Sleep(2000) ;allow time to move mouse before reporting ID

;create an array that tells us the meaning of an ID Number
Local $IDs = StringSplit("AppStarting|Arrow|Cross|Help|IBeam|Icon|No|" & _
        "Size|SizeAll|SizeNESW|SizeNS|SizeNWSE|SizeWE|UpArrow|Wait|Hand", "|")
$IDs[0] = "Unknown"

Local $cursor = MouseGetCursor()
MsgBox(4096, "ID = " & $cursor, "Which means " & $IDs[$cursor])