Load DLL() loads the DLL in the specified path. Use the AutoDeclare(Quiet) argument to suppress log window messaging.
Use the Declare Function message to define it and then call it.
The Alias defines an alternate name that you can use in JSL. For example, if you declared Alias("MsgBox") for a function that is named "Message Box" in the DLL, then you would call it as follows:
result = dll_obj <<MsgBox(...)
The named arguments for Convention are as follows:
•
|
STDCALL or PASCAL
|
•
|
Finally, use the UnLoadDLL message to unload the DLL:
If you are writing your own DLL, you can create functions in it using JSL. The Get Declaration JSL message sends any JSL functions in your DLL to the log:
If your DLL contains functions that are very simple, the Call DLL message declares the specified function with the specified signature, as shown in Signature Values.
Effectively, what these two lines accomplish is to call MyExportedFcn, passing 654 as input to the function. Conceptually, it is as if the JSL script executed MyExportedFcn(654);