for Multimedia Builder

Documentation

Command List

AssignPath AssignExtension
AssignName DeassignExtension
RegisterApplication UpdateSystem
CheckExtension  

 

 

 

Command Reference

NOTE: This documentation explains the use and parameters/return variables of each command. Users that aren't experienced with the use of PlugIns might find much easier to understand the included MMB demo, as it uses all the commands together.

AssignPath
Use this command before using RegisterApplication. This command sets the path you want to associate your files to. You also need to use this command before checking associations.
Example

Path$='<SrcDir>\your-app.exe'
PluginSet("PlugIn","Path$")
PluginRun("PlugIn","AssignPath")
Parameters App path (String)
Returns
-

 

 

 

 

 

 

 

AssignName
Use this command before using RegisterApplication. This command sets the name of your app, which will appear as the name that the extension is associated to in Windows.
Example

Name$='My App'
PluginSet("PlugIn","Name$")
PluginRun("PlugIn","AssignPath")
Parameters App name (String)
Returns
-

 

 

 

 

 

 

 

RegisterApplication
Use this command to register your application in the Windows registry, so you will be later able to associate file types to it. Before using this command, AssignPath and AssignName must be used.
Example

PluginRun("PlugIn","RegisterApplication")
Parameters -
Returns
-

 

 

 

 

 

 

CheckExtension
Use this command to check if the extension (Ext$) is associated to your app. If it is returns integer 1, if it's not, returns integer 0. If the app was associated without using FileExt PlugIn, plugin will also return value 0. Before using this command, you need to set the app's path through AssignPath command.
Example

Ext$='txt'
PluginSet
("PlugIn","Ext$")
PluginRun("PlugIn","CheckExtension")
PluginGet("PlugIn","var")
If (var=1) Then
msg$=Ext$+' is associated to '+Path$
Message("msg$","")
Else
msg$=Ext$+' is not associated to '+Path$
Message("msg$","")
End
Parameters Extension without dot (String)
Returns
0=not associated, 1=associated (Integer)

 

 

 

 

 

 

 

 

 

 

 

AssignExtension
Use this command to associate extension (Ext$) to your app. Before using this command, AssignName and AssignPath should be used and your application must be registered in the Windows registry (RegisterApplication). UpdateSystem must be called after using this command.
Example

Ext$='txt'
PluginSet
("PlugIn","Ext$")
PluginRun("PlugIn","AssignExtension")
Parameters Extension without dot (String)
Returns
-

 

 

 

 

 

 

 

DeassignExtension
This command will deassociate the extension (Ext$) from your app. It will only work for file types associated by FileExt PlugIn. Previous associated app will be restored. UpdateSystem must be called after using this command.
Example

Ext$='txt'
PluginSet
("PlugIn","Ext$")
PluginRun("PlugIn","DeassignExtension")
Parameters Extension without dot (String)
Returns
-

 

 

 

 

 

 

 

UpdateSystem
This command must be always used after using AssignExtension and DeassignExtension as it updates your system to complete the association/deassociation process.
Example

PluginRun("PlugIn","UpdateSystem")
Parameters -
Returns
-

 

 

 

 

 

 

PlugIn Information

Plugin created by PauVictor.
MMB Demo and Documentation created by DestroY.


Last Revision

December 28, 2004