Jump to content
Ketarin forum

C# command script API?


MAPJe71
 Share

Recommended Posts

Selecting 'C# script' as a command shows the following info ...

/*
  Enter a custom C# script here. C# is case sensitive.
  "app" references the current application.
  Example:
  MessageBox.Show(app.Name);
  
  = Notable methods =
  app.PreviousLocation
    Corresponds to the variable {file}

  app.Variables.ReplaceAllInString("Any {text} with variables.")
    Replaces all known variables in a given string.
    Example: string new = app.Variables.ReplaceAllInString("{file}")

  return;
    Exits the script.

  Abort("Error text");
    Exits the script with a given error.
*/

I could not find any additional info here in the forum or on the Wiki.

So I was wondering if anyone knows more about the API in additional to the aforementioned 'notable methods' and

could point me in the right direction.

 

Thanx, Menno

Link to comment
Share on other sites

  • 3 weeks later...

Well, I'm still around, but I'm slacking off a bit in regard to visiting the Ketarin forum.

 

In regard to the C# API, I would recommend you to check the Ketarin source, in case of "app", you should look at the ApplicationJob class. You can use all the public methods and properties there.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.