[HOW TO] Pass variables to Scripting and display them

Thanks for the code, but actually this is already in the documentation:
http://www.exeoutput.com/help/callscript.htm (Using HTML Links => If your procedure/function uses string parameters (only string parameters!), you can pass them using a | separator…)
But it can be added to the FAQ.

** Script ]** (Statistics.toppk)

procedure toppk(cond: String; cond2: String);
var                    
buttonSelected : Integer; 
begin           

buttonSelected := MessageBox("TOP PK Character is: "#13#10""#13#10"" + cond + " "#13#10""#13#10"Would you like to edit this character?", "Top PK", MB_OKCANCEL+MB_ICONINFORMATION);   

if buttonSelected = IDOK     then MessageBox("Go to edit character with ID "+ cond2 +"", "Result from button", MB_OK+MB_ICONINFORMATION);
if buttonSelected = IDCANCEL then MessageBox("Whatever, i wont blame you!", "Result from button", MB_OK+MB_ICONINFORMATION);  

end;    

** HTML ]**

echo '<a href="hescript://Statistics.toppk|moikomij|0001161651">Click?</a>';

This SHOULD be included into the help of EXEoutput :slight_smile:

This topic was automatically closed after 24 hours. New replies are no longer allowed.