# Loop scroll with arrow keys

**URL:** https://resource.dopus.com/t/loop-scroll-with-arrow-keys/29115
**Category:** Help & Support
**Created:** [June 13, 2018, 4:23pm UTC](https://resource.dopus.com/t/loop-scroll-with-arrow-keys/29115 "2018-06-13T16:23:44Z")
**Posts on this page:** 1
**Showing post:** 21

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [September 7, 2018, 12:22pm UTC](https://resource.dopus.com/t/loop-scroll-with-arrow-keys/29115/21 "2018-09-07T12:22:40Z")

</div>

> [@AlbatorV](#):
>
> Questions:
> 
> - Is there a way to test focus by script (If left file display is active, do this… If tree is activate, do this…) ?
> - Is there a way to test view mode by script (details, thumbnails…) ?

You can use [command.IsSet](https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Scripting/Command.htm) in scripts to test the same things @if does in basic buttons.

Simple example here: [Multiple file and inline rename - #12 by Leo](https://resource.dopus.com/t/multiple-file-and-inline-rename/29443/12)

---

_[View the full topic](https://resource.dopus.com/t/loop-scroll-with-arrow-keys/29115)._
