0% found this document useful (0 votes)
5 views1 page

Lua Script Executor Functions

Uploaded by

dnrblxalt
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Lua Script Executor Functions

Uploaded by

dnrblxalt
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

// Execute

string script = "[Link]();";


string result = await [Link](script);
string editorText = [Link]([Link]('"'));
[Link](editorText);

// Inject

[Link]();

// Clear Text

await [Link]($"SetText(``);");

// Save File

try
{
SaveFileDialog saveFileDialog1 = new SaveFileDialog
{
Filter = "Lua Files (*.lua)|*.lua|Text Files (*.txt)|*.txt",
DefaultExt = "lua",
Title = "Your Executor Name | Save Script"
};

if ([Link]() == [Link])
{
string textToSave = await [Link]("GetText();");
string rawText = [Link]<string>(textToSave);
[Link]([Link], rawText);
}
}
catch (Exception ex)
{
[Link]($"An error occurred: {[Link]}", "Error",
[Link], [Link]);
}

// Open Folder

OpenFileDialog dialog = new OpenFileDialog();


[Link] = "Txt Files (*.txt)|*.txt|Lua Files (*.lua)|*.lua|All Files (*.*)|
*.*";
[Link] = "Your Executor Name | Load Script";

if ([Link]() == [Link])
{
string script = [Link]([Link]);
await [Link]($"[Link](`{script}`)");
}

// Close button

[Link]();

// Minimize button

WindowState = [Link];

You might also like