---
name: "ctrlAutoScrollSpeed"
type: command
status: ok
groups: ["GUI Control", "GUI Control - ListBox", "GUI Control - ListNBox"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlAutoScrollSpeed
revid: 319021
updated: 2022-05-13T09:22:12Z
---

# ctrlAutoScrollSpeed

*Command · GUI Control, GUI Control - ListBox, GUI Control - ListNBox · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Returns number of seconds to auto-scroll one line. -1 if auto-scroll is disabled. -2 if scrollbar not present.

Autoscroll is available for CT_LISTBOX and CT_CONTROLS_GROUP types of controls only. Autoscroll will wait [ctrlAutoScrollDelay](../commands/ctrlAutoScrollDelay.md) seconds (must be  > 0) and then will scroll the scroll bar down to the bottom. [ctrlAutoScrollSpeed](../commands/ctrlAutoScrollSpeed.md) defines the speed with which scrollbar is scrolled. If [ctrlAutoScrollRewind](../commands/ctrlAutoScrollRewind.md) is [true](../commands/true.md), the control will fade out, immediately rewind to the top, then fade in, wait [ctrlAutoScrollDelay](../commands/ctrlAutoScrollDelay.md) seconds and then repeat the scrolling in a loop. If user focuses on the control, autoscrolling is interrupted.

## Syntax

```sqf
ctrlAutoScrollSpeed control
```

**Parameters:**

- `control`: [Control](../topics/Control.md) - CT_LISTBOX or CT_CONTROLS_GROUP

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
_ctrlSpeed =  ctrlAutoScrollSpeed _ctrlGroup;
```

## See also

[ctrlSetAutoScrollSpeed](../commands/ctrlSetAutoScrollSpeed.md) · [ctrlSetAutoScrollDelay](../commands/ctrlSetAutoScrollDelay.md) · [ctrlAutoScrollDelay](../commands/ctrlAutoScrollDelay.md) · [ctrlSetAutoScrollRewind](../commands/ctrlSetAutoScrollRewind.md) · [ctrlAutoScrollRewind](../commands/ctrlAutoScrollRewind.md)

<sub>Source: [BI Community Wiki — ctrlAutoScrollSpeed](https://community.bistudio.com/wiki/ctrlAutoScrollSpeed) (revision 319021).</sub>
