グローバルカーソルの情報を取得します。
#Include <WinAPI.au3>
_WinAPI_GetCursorInfo()
パラメータ
なし。
返し値
成功: | 次のフォーマットの配列: |
$aCursor[0] - True | |
$aCursor[1] - カーソルが表示されている場合はTrue、それ以外の場合はFalse | |
$aCursor[2] - カーソルのハンドル | |
$aCursor[3] - カーソルのX座標 | |
$aCursor[4] - カーソルのY座標 | |
失敗: | @errorを返します。 |
注意
なし。
関連
こちらも参照
MSDNライブラリでGetCursorInfoを検索して下さい。
例
#AutoIt3Wrapper_Au3Check_Parameters= -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <WinAPI.au3>
Opt('MustDeclareVars', 1)
_Main()
Func _Main()
Local $cursor, $text
$cursor = _WinAPI_GetCursorInfo()
$text = "Was the operation sucessful? " & $cursor[0] & @CRLF
$text &= "Is the cursor showing? " & $cursor[1] & @CRLF & @CRLF
$text &= "Cursor Handle: " & $cursor[2] & @CRLF
$text &= "X Coordinate: " & $cursor[3] & @CRLF
$text &= "Y Coordinate: " & $cursor[4]
MsgBox(0, "_WinApi_GetCursorInfo Example", $text)
EndFunc ;==>_Main