# Use the icon of Script Add-ins in a script dialog in other scripts?

**URL:** <https://resource.dopus.com/t/use-the-icon-of-script-add-ins-in-a-script-dialog-in-other-scripts/43960>\
**Category:** Help & Support\
**Tags:** jscript\
**Created:** [March 16, 2023, 5:13am UTC](https://resource.dopus.com/t/use-the-icon-of-script-add-ins-in-a-script-dialog-in-other-scripts/43960 "2023-03-16T05:13:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [March 16, 2023, 12:03pm UTC](https://resource.dopus.com/t/use-the-icon-of-script-add-ins-in-a-script-dialog-in-other-scripts/43960/3 "2023-03-16T12:03:41Z")

</div>

There's an example here:

> [@Help with Script Dialog icon](https://resource.dopus.com/t/help-with-script-dialog-icon/30656/6):
>
> Here you go. This example adds a command called CatDialog. The .osp file has the images in it as well as the script file. [catdlg.osp](https://resource.dopus.com/uploads/default/original/3X/6/0/6039e82134e12ba6ee83504c053533720e7de68a.osp) (30.2 KB) Option Explicit ' catdlg ' (c) 2018 jpotter ' This is a script for Directory Opus. ' See https://www.gp…

While that loads a PNG, you can change it to load a ICO and it still works. The script package includes both PNG and ICO images, so you can test it by changing this line:

```vbscript
Dlg.control("cat").label = Script.LoadImage("cat.png")

```

To this:

```vbscript
Dlg.control("cat").label = Script.LoadImage("cat32.ico")

```

---

_[View the full topic](https://resource.dopus.com/t/use-the-icon-of-script-add-ins-in-a-script-dialog-in-other-scripts/43960)._
