獲取鼠標(biāo)的當(dāng)前坐標(biāo)位置.
MouseGetPos ( [返回] )
返回 | [可選參數(shù)] 決定返回值的類型. 見返回值表. |
返回 | 值 |
無 | 返回包含鼠標(biāo)坐標(biāo)的 2 元素數(shù)組: $array[0] = X 水平坐標(biāo), $array[1] = Y 垂直坐標(biāo) |
0 | 返回 X 坐標(biāo)的整數(shù)值. |
1 | 返回 Y 坐標(biāo)的整數(shù)值. |
Local $pos
= MouseGetPos()
MsgBox(2048, "", "當(dāng)前光標(biāo)位置
x,y: " & $pos[0] & "," & $pos[1])
provider with jb51.net (unicode) |