Exo_runhescriptcom function not working

Hello,

In new version, I have created Macros Scripting procedure as following.

procedure MacroExit;
begin
ExitPublication;
end;

When I run the procedure clicking on link it works :

a href=“hescript://Macros.MacroExit”>Exit</a

When I call the procedure it doesn’t work.

exo_runhescriptcom(‘Macros.MacroExit’,‘Error’);
or
exo_return_hescriptcom(“Macros.MacroExit”,“Error”);

Can you tell me what’s wrong, please?

Thank-you,
Gilbert

It’s a specific case here. Calling ExitPublication from PHP will not work because ExeOutput uses different EXE processes. Use a call from JavaScript instead.

Use in javascript code if (exeoutput) exeoutput.RunHEScriptCode(‘ExitPublication;’);

1 Like