获取到图标的句柄和索引后,获取图标对应的坐标
Func _GUICtrlToolbar_MoveToButton($hWnd, $iCommandID)
Local $tRECT = _GUICtrlToolbar_GetButtonRectEx($hWnd, $iCommandID)
Local $tPoint = _WinAPI_PointFromRect($tRECT)
$tPoint = _WinAPI_ClientToScreen($hWnd, $tPoint)
Local $iX, $iY
_WinAPI_GetXYFromPoint($tPoint, $iX, $iY)
Local $iMode = Opt("MouseCoordMode", 1)
MouseMove($iX, $iY,0)
EndFunc