0% found this document useful (0 votes)
3 views2 pages

Open Source

The document is a C# code snippet for a Windows Forms application named Avernus. It includes a timer that checks if Roblox is open and if a script is injected, updating the UI accordingly. The application also provides functionality to inject scripts, kill Roblox, clear a text box, and set auto-inject options through user interactions.

Uploaded by

skylarsevilla07
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)
3 views2 pages

Open Source

The document is a C# code snippet for a Windows Forms application named Avernus. It includes a timer that checks if Roblox is open and if a script is injected, updating the UI accordingly. The application also provides functionality to inject scripts, kill Roblox, clear a text box, and set auto-inject options through user interactions.

Uploaded by

skylarsevilla07
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
You are on page 1/ 2

using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Avernus
{
public partial class Avernus : Form
{
Timer time = new Timer();

public Form1()
{

time.Tick += timertick;
time.Start();
}

private void timertick(object sender, EventArgs e)


{
if (ForlornApi.Api.IsRobloxOpen())
{
robloxopen.Text = "Roblox Open: ✔️";
}
else
{
robloxopen.Text = "Roblox Open: ✖️";
}

if (ForlornApi.Api.IsInjected())
{
status.Text = "Status: Injected!";
}
else
{
status.Text = "Status: Not Injected!";
}
}

private void Inject_Click(object sender, EventArgs e)


{
ForlornApi.Api.Inject();
}

private void KillRoblox_Click(object sender, EventArgs e)


{
ForlornApi.Api.KillRoblox();
}

private void Clear_Click(object sender, EventArgs e)


{
richTextBox1.Clear();
}
private void Execute_Click(object sender, EventArgs e)
{

ForlornApi.Api.ExecuteScript(richTextBox1.Text)

private void checkBox1_CheckedChanged(object sender, EventArgs e)


{
ForlornApi.Api.SetAutoInject(checkBox1.Checked);
}
}
}

You might also like