# Info Bar

**URL:** https://resource.dopus.com/t/info-bar/56679
**Category:** Buttons/Scripts
**Tags:** script, jscript
**Created:** [July 30, 2025, 4:00am UTC](https://resource.dopus.com/t/info-bar/56679 "2025-07-30T04:00:12Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![dasota](https://resource.dopus.com/user_avatar/resource.dopus.com/dasota/32/65206_2.png) [@dasota](https://resource.dopus.com/u/dasota)
#### Post date: [July 30, 2025, 4:00am UTC](https://resource.dopus.com/t/info-bar/56679/1 "2025-07-30T04:00:12Z")

</div>

This simple script displays information about the selected item, whether a file or a folder. Thumbnails react to clicks; if it's a folder, it will open normally; and if it's a file, it will open with Opus's internal viewer (I couldn't get them to open with the default program). If a folder is selected, it will be analyzed to see if it contains images; if it does, the total number of images and the first six thumbnails will be displayed. These thumbnails also react to clicks. The script works in any view mode, even List mode. If the window is moved, we can reset its position using the "Reset position" button. The script has two translations: Spanish and English.

Once the script is installed, simply run it using a button in "Standard Function" mode (Opus or external) with the "BarraEstado" command. I can't end this presentation without first expressing my eternal gratitude to @errante for his extraordinary contribution to navigating between tabs and panels.

Note: The width and position (horizontal and vertical) of the window must be customized according to individual needs. To specify the width, do so directly in the script, on line 758; the default value is "1095". To specify the position, use the script's settings button.

[Info Bar 1.3.js.txt](https://resource.dopus.com/uploads/short-url/urm51Eo5Grct9l9PUC4f9CzzG3I.txt) (55.4 KB)  
[Info Bar 1.4.js.txt](https://resource.dopus.com/uploads/short-url/ecvARc1WUgpJ8QCaplo8KXsixak.txt) (55.6 KB) //Window position from script settings

[Button.dcf](https://resource.dopus.com/uploads/short-url/9O4fux5rIJjQbRfVE7TaoCDfJme.dcf) (343 Bytes)

 ![Apariencia (Inglés)](https://resource.dopus.com/uploads/default/original/3X/c/6/c68a7bced612cb216f4ecc11e4173fdb6857438f.png)

---

<div class="post-metadata">

### Author: ![jfour18](https://resource.dopus.com/user_avatar/resource.dopus.com/jfour18/32/66032_2.png) [@jfour18](https://resource.dopus.com/u/jfour18)
#### Post date: [July 30, 2025, 4:13am UTC](https://resource.dopus.com/t/info-bar/56679/2 "2025-07-30T04:13:17Z")

</div>

Really cool idea!

The dialog was going off screen for me but changing it to resizable in properties fixed this.

---

<div class="post-metadata">

### Author: ![dasota](https://resource.dopus.com/user_avatar/resource.dopus.com/dasota/32/65206_2.png) [@dasota](https://resource.dopus.com/u/dasota)
#### Post date: [July 30, 2025, 4:36am UTC](https://resource.dopus.com/t/info-bar/56679/3 "2025-07-30T04:36:59Z")

</div>

Excellent solution, you could also adjust the dialog width manually on line 655:  
`<dialog fontsize="9" height="94" lang="esm" title="Información de archivo" width="1095">`

And adjust the position here:

```
function posicion () {
    dlg.main.x = -6; // Posición horizontal
    dlg.main.y = 800; // Posición vertical
}

```

---

<div class="post-metadata">

### Author: ![jinsight](https://resource.dopus.com/user_avatar/resource.dopus.com/jinsight/32/43666_2.png) [@jinsight](https://resource.dopus.com/u/jinsight)
#### Post date: [July 30, 2025, 10:08am UTC](https://resource.dopus.com/t/info-bar/56679/4 "2025-07-30T10:08:43Z")

</div>

I can't change the width. The script has only 650 lines. The word "width" is not in the script. Resources has a dialog but only resizes to 1088. I need half that width. Could you please give directions to change the width? Thanks.

---

<div class="post-metadata">

### Author: ![jfour18](https://resource.dopus.com/user_avatar/resource.dopus.com/jfour18/32/66032_2.png) [@jfour18](https://resource.dopus.com/u/jfour18)
#### Post date: [July 30, 2025, 10:11am UTC](https://resource.dopus.com/t/info-bar/56679/5 "2025-07-30T10:11:40Z")

</div>

I shortened it manually.

[shorter barra.opusscriptinstall](https://resource.dopus.com/uploads/short-url/e86u7A7lAHURy4GQShK9lTzFzWm.opusscript) (9.2 KB), by editing dialog 1 in resources.

---

<div class="post-metadata">

### Author: ![dasota](https://resource.dopus.com/user_avatar/resource.dopus.com/dasota/32/65206_2.png) [@dasota](https://resource.dopus.com/u/dasota)
#### Post date: [July 30, 2025, 1:15pm UTC](https://resource.dopus.com/t/info-bar/56679/6 "2025-07-30T13:15:18Z")

</div>

I published the same script with a TXT extension for easy editing with Windows Notepad, follow my instructions and you'll get it, it's very easy.

---

<div class="post-metadata">

### Author: ![Chuck](https://resource.dopus.com/user_avatar/resource.dopus.com/chuck/32/23917_2.png) [@Chuck](https://resource.dopus.com/u/Chuck)
#### Post date: [December 14, 2025, 11:18pm UTC](https://resource.dopus.com/t/info-bar/56679/7 "2025-12-14T23:18:52Z")

</div>

Two suggestions:

1. Have it open on the monitor relative to where the lister is open
2. Allow size to be user configurable via the script configuration popup, just as you already have the language option

---

<div class="post-metadata">

### Author: ![dasota](https://resource.dopus.com/user_avatar/resource.dopus.com/dasota/32/65206_2.png) [@dasota](https://resource.dopus.com/u/dasota)
#### Post date: [December 15, 2025, 12:43am UTC](https://resource.dopus.com/t/info-bar/56679/8 "2025-12-15T00:43:55Z")

</div>

@Chuck, thank you very much for your suggestions, but I didn't understand the first one; and regarding the second, your idea is excellent, I'm going to implement it!

---

<div class="post-metadata">

### Author: ![Chuck](https://resource.dopus.com/user_avatar/resource.dopus.com/chuck/32/23917_2.png) [@Chuck](https://resource.dopus.com/u/Chuck)
#### Post date: [December 15, 2025, 1:07am UTC](https://resource.dopus.com/t/info-bar/56679/9 "2025-12-15T01:07:22Z")

</div>

I have a laptop with a second larger monitor. When launching the script from a lister on the second monitor, the dialog box launches on the laptop. I would prefer it to launch on the monitor that has the lister opened.

---

<div class="post-metadata">

### Author: ![dasota](https://resource.dopus.com/user_avatar/resource.dopus.com/dasota/32/65206_2.png) [@dasota](https://resource.dopus.com/u/dasota)
#### Post date: [December 15, 2025, 1:39am UTC](https://resource.dopus.com/t/info-bar/56679/10 "2025-12-15T01:39:20Z")

</div>

Now I understand, I'll correct that detail

---

<div class="post-metadata">

### Author: ![dasota](https://resource.dopus.com/user_avatar/resource.dopus.com/dasota/32/65206_2.png) [@dasota](https://resource.dopus.com/u/dasota)
#### Post date: [December 17, 2025, 1:21am UTC](https://resource.dopus.com/t/info-bar/56679/11 "2025-12-17T01:21:23Z")

</div>

I just updated the script; now it's possible to specify the window's position using the script's settings button. I couldn't figure out how to do your other suggestion, opening the window on the same monitor as the Lister, but I'll try again later.

---

<div class="post-metadata">

### Author: ![Chuck](https://resource.dopus.com/user_avatar/resource.dopus.com/chuck/32/23917_2.png) [@Chuck](https://resource.dopus.com/u/Chuck)
#### Post date: [December 17, 2025, 1:49am UTC](https://resource.dopus.com/t/info-bar/56679/12 "2025-12-17T01:49:42Z")

</div>

Thanks for this. One other sizing issue: the dialog is 2,190 px horizontally, which takes it offscreen. How do we make it smaller?

---

<div class="post-metadata">

### Author: ![dasota](https://resource.dopus.com/user_avatar/resource.dopus.com/dasota/32/65206_2.png) [@dasota](https://resource.dopus.com/u/dasota)
#### Post date: [December 17, 2025, 8:56am UTC](https://resource.dopus.com/t/info-bar/56679/13 "2025-12-17T08:56:56Z")

</div>

If your monitor's width is 2190 pixels, you must specify that value on line 758, as explained in the script description. Try going to the end of the script, to the resources section (SCRIPT RESOURCES), and locate this line:

`<dialog fontsize="9" height="94" lang="esm" title="dialog1" width="1095">`

And replace 1095 with 2190. Ideally, the script would automatically capture the screen width and perform this substitution on its own, but I'm not sure if that's possible.

---

<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: [December 17, 2025, 9:05am UTC](https://resource.dopus.com/t/info-bar/56679/14 "2025-12-17T09:05:57Z")

</div>

Scripts can get information about monitor rectangles, if that’s what you need.

> **[SysInfo \[Directory Opus Manual\]](https://docs.dopus.com/doku.php?id=reference:scripting_reference:scripting_objects:sysinfo)**

---

<div class="post-metadata">

### Author: ![dasota](https://resource.dopus.com/user_avatar/resource.dopus.com/dasota/32/65206_2.png) [@dasota](https://resource.dopus.com/u/dasota)
#### Post date: [December 17, 2025, 9:22am UTC](https://resource.dopus.com/t/info-bar/56679/15 "2025-12-17T09:22:41Z")

</div>

@Leo, what I'd like to do is have the dialog width automatically adjust to the screen width. Is there any way to make the width of a dialog change dynamically? Thank you very much.

`<dialog fontsize="9" height="94" lang="esm" title="dialog1" width="1095">`

---

<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: [December 17, 2025, 9:33am UTC](https://resource.dopus.com/t/info-bar/56679/16 "2025-12-17T09:33:16Z")

</div>

The Dialog object has properties for its position and size.

---

<div class="post-metadata">

### Author: ![Chuck](https://resource.dopus.com/user_avatar/resource.dopus.com/chuck/32/23917_2.png) [@Chuck](https://resource.dopus.com/u/Chuck)
#### Post date: [December 17, 2025, 11:35am UTC](https://resource.dopus.com/t/info-bar/56679/17 "2025-12-17T11:35:36Z")

</div>

Thanks for this. I think part of my issue is I am an English speaker. The script appears in Spanish on my system and is the only one that appears as such.

---

<div class="post-metadata">

### Author: ![skinz](https://resource.dopus.com/user_avatar/resource.dopus.com/skinz/32/42589_2.png) [@skinz](https://resource.dopus.com/u/skinz)
#### Post date: [December 17, 2025, 12:35pm UTC](https://resource.dopus.com/t/info-bar/56679/18 "2025-12-17T12:35:03Z")

</div>

> [@Chuck](#):
>
> Thanks for this. I think part of my issue is I am an English speaker. The script appears in Spanish on my system and is the only one that appears as such.

You can change the language in its script settings.

 ![2025-12-17_193222](https://resource.dopus.com/uploads/default/original/3X/8/d/8d4048737a76ce5c0ea950c8b52a1109f9a9fb14.png)

---

<div class="post-metadata">

### Author: ![Chuck](https://resource.dopus.com/user_avatar/resource.dopus.com/chuck/32/23917_2.png) [@Chuck](https://resource.dopus.com/u/Chuck)
#### Post date: [December 17, 2025, 1:04pm UTC](https://resource.dopus.com/t/info-bar/56679/19 "2025-12-17T13:04:06Z")

</div>

I get that. The script code itself is in Spanish and does not change with that setting change.

---

<div class="post-metadata">

### Author: ![skinz](https://resource.dopus.com/user_avatar/resource.dopus.com/skinz/32/42589_2.png) [@skinz](https://resource.dopus.com/u/skinz)
#### Post date: [December 17, 2025, 1:32pm UTC](https://resource.dopus.com/t/info-bar/56679/20 "2025-12-17T13:32:13Z")

</div>

Ah, I see, so what you meant was the language in the script.
