---
title: "DIRepeatButton, DIORepeatButton, GIORepeaButton, UniversalRepeatButton, VersatileRepeatButton"
canonical: "https://docs.cuesystem.com/space/CVCDD/439517240/DIRepeatButton%2C%20DIORepeatButton%2C%20GIORepeaButton%2C%20UniversalRepeatButton%2C%20VersatileRepeatButton"
format: markdown
---
> Macro (toc)

---

# Description

These drivers convert digital input, digital I/O input, general I/O input, or versatile input to a repeat button. Appropriate driver emulates the touch panel button with the same functionality. The potential free button has to be connected between the appropriate channel pin and the ground. When this button is pushed, it starts to generate OnRepeat() event periodically (with time period RepeatInterval) until the button is released.

# Properties

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| Property Name | Data Type | Allowed Values | Default Value | Description |
| Behavior |
| RepeatInterval | Time | Any positive | :0.4 | Period of generating events while button is pushed |

# Functions

## SetRepeatInterval

This function sets RepeatInterval of the button. The function returns True on success or False if an error occurs (i.e. newrepeatinterval <= :.0).

#### Syntax

```visualbasic
Function SetRepeatInterval (newrepeatinterval As Time) As Boolean
```

## GetRepeatInterval

This function returns the current RepeatInterval of the button.

#### Syntax

```visualbasic
Function GetRepeatInterval () As Time
```

# Events

## OnRepeat As Process

This event is periodically generated while the button is pushed.

#### Syntax

```visualbasic
Event OnRepeat As Process ()
```