Navigation:  Click-Script Guide > DLL Actions >

Defining DLL Actions

Previous pageReturn to chapter overviewNext page

How to define DLL actions:

 

1. Open the DLL Actions' Manager, select Actions > DLL Actions' Manager.

2. Select Editor > Add DLL Action.

3. Go to the properties editor and type the properties of the DLL actions:

 

Name

The name of the action. This name must to be unique, and you will use it to call your DLL action from the events.

Description

The description of the action, that will be displayed in the click-script's editor.

Type

The type of the value returned by the DLL function.

Unicode

Define if the DLL function uses the Unicode char set. VisualSetup automatically converts the Unicode strings to ANSI strings and ANSI strings to Unicode.

FileName

The path of the DLL file that contains the function you want to call.

FunctionName

The name of the function stored in the DLL file you want to call.

 

4.  Define the parameters of your DLL action, please read the topic Defining Parameters for more information.

 

 

Example: defining a DLL action to call the Unicode version of the message box function of Windows API

Name = MessageBoxW

Description = Calls the Unicode version of the message box function of Windows API

Type = LongInt

Unicode = True

FileName = %SysDir%\user32.dll

FunctionName = MessageBoxW