Categories > Coding > C# >

[RL] Auto Launch On Startup

GRP_OFFICIAL

I am a HomoSapiens!

Posts: 27

Threads: 3

Joined: Jan, 2023

Reputation: -11

Posted

This setting is useless for most of the dudes. But it's useful for those, who opens their pc and starts exploiting in roblox!

So this Auto launch works on a checkbox. 

 

1. Make a checkbox named autolaunchCB.

2. add this code to the checkbox: 

private void autolaunchCB_CheckedChanged(object sender, EventArgs e)
        {
            RegistryKey rk = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);

            bool idk = autolaunchCB.Checked;
            if (idk)
            {
                rk.SetValue("executorName.exe", Application.ExecutablePath);
            }
            else
            {
                rk.SetValue("executorName.exe", false);
            }
        }

3. And also add a sys that if you check the autolaunch and closed your executor. when you open executor again the auto launch will be checked! I ALR MADE THIS SYS (But Not Giving, Its Easy Make Yourself)

  • 0

imaKid

Posts: 2099

Threads: 10

Joined: Sep, 2020

Reputation: 62

Replied

Oh no

 

 

content length

  • 0

Discord : Doctor Doom#0550

marcus__

S.K.I.D

vip

Posts: 444

Threads: 23

Joined: Nov, 2022

Reputation: 29

Replied

private void autolaunchCB_CheckedChanged(object sender, EventArgs e)
{
    RegistryKey rk = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);
    rk.SetValue("executorName.exe", autolaunchCB.Checked ? Application.ExecutablePath : false);
}

shorter

  • 0

!!!!!marcus__!!!!!#8611

https://cdn.discordapp.com/attachments/1066053366758780978/1078052772567597127/image.png

Akula

Pv.Akula

vip

Posts: 220

Threads: 14

Joined: Apr, 2018

Reputation: 37

Replied

@tempegoreng,

private void autolaunchCB_CheckedChanged(object sender, EventArgs e) => Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true)?.SetValue("executorName.exe", autolaunchCB.Checked ? Application.ExecutablePath : "", RegistryValueKind.String) ?? Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true)?.DeleteValue("executorName.exe", false);

Shorter

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )