Execute scripts stored in packages from ScriptingWindow

Hallo,

For testing purposes i use ScriptingWindow.
How can i execute scripts that are stored in packages inside the scrpting window.

Example will fail with access violation:
function main()
{
PERTools.DebugPrint(“Test”);
}

Regards,
Reiner

Hi Reiner,

you cannot call scripts stored in packages from Scripting Window. If you wish to call such scripts, please create a test package with test macro and then call the script from test macro.

BTW: there is a bug in this function. It should be defined this way:

function DebugPrint(strMessage)
{
var Log = System.CreateObject(‘Log’);
Log.Information(strMessage);
};

From scripting window you can call methods of “registered objects”. All available methods can be found in Reference (Help | Reference).

Regards,

Vaclav

Thanks.

Meanwhile i added makros to my add-on package, which then makes the call to the script methods.

Regards,
Reiner.