---
title: "getSelectedKeys"
canonical: "https://help.vicon.com/space/Shogun18/13668470/getSelectedKeys"
format: markdown
---
# Description

Gets the frame numbers on which there are selected keys for the selected or specified module and the specified channel.

## Functional area

Data retrieval

# Command syntax

## Syntax

|  |
| --- |
| `getSelectedKeys propertyName[-onMod string]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `propertyName` | string | yes | Name of the channel property to count keys for |

### Flags

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `onMod` | 1 | string | — | Returns the selected keys for the specified module. |

## Return value

Integer array 

> Macro (scroll-pagebreak)

## Examples

```plaintext
int $i[]; 
select RKNE; 
selectRange 1 2;
selectRange 5 6 -a;
selectKeys -ranges;
 
$i= `getSelectedKeys Translation`;
print $i; //Output "1 2 5 6"
 
select;
$i= `getSelectedKeys Translation –onMod RKNE`;
print $i; //Output "1 2 5 6"
```

# Additional information

## Related commands

- [selectKeys](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668035)