Opus Xtras Instructions:

Toolkit DLL

a set of useful functions for Opus Pro

Overview

A toolkit DLL for use with Opus Pro provides a selection of functions for security, file management and other utilities such as launching PowerPoint Templates. It requires Microsoft .Net 2 and a basic understanding of OpusScript.

Contents

This is a javascript function and it updates two variables in your Opus publication to provide information to your publication:

  • clipboard - save a clipboard image as a JPEG.
  • download - download a file from a specified URL. Now works in the background.
  • usertype - displays either USER or ADMIN depending on how you load the program.
  • file - allows you to pick a file and extract information - currently accessed date & size
  • drive - choose a drive letter to retrieve the name and volume serial number.
  • hash - generate an MD5 hash from a string.Now links to Opus HTML5 version of the same feature.
  • launch - load a file as if you had double clicked it in Windows. Now accepts parameters.
  • RegExp - performs a regular expression on a string.
  • Process - perform a process count based on a given process name in Task Manager.

A sample publication Toolkit.imp is also provided to provide working examples of each function so that the actions and script reruied can be used as a reference for your own projects

Using the Functions

Make sure the file interaktiv.dll is in the same directory as the publication which uses it (in Opus this is maintained in the variable SYSTEM_PUBLICATION_DIR which the examples use to access the functions).

The DLL must be loaded before any function can be used which you can do with the following piece of OpusScript:

myDLL = LoadDLL( SYSTEM_PUBLICATION_DIR + "Interaktiv.dll" );

Then each function can be called using the appropriate OpusScript as per the examples provided in the example Opus publication.

Support

Further information and support for this resource is provided by Interaktiv. Please do not contact Digital Workshop support about this resource.