Skip to content

Instantly share code, notes, and snippets.

@MikeCodesDotNET
Created May 11, 2020 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikeCodesDotNET/c933cb93d155eb4af0b0eecabc3346dc to your computer and use it in GitHub Desktop.
Save MikeCodesDotNET/c933cb93d155eb4af0b0eecabc3346dc to your computer and use it in GitHub Desktop.
private async void RunMacro()
{
if(userScript == null)
MessageBox.Show("You must first compile the script.");
try
{
ScriptState result = await userScript.RunAsync();
}
catch(Exception e)
{
MessageBox.Show(e.Message.ToString(), "Error");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment