Solved❗ Own Loader

Posts 1–6 of 6 · Page 1 of 1
❗ Own Loader
Hey, can anyone help me with an Injector? I've made an injector but now I don't know how to get the DLL injected into csgo.

Code:
 /* Declare string to store the game's executable name */
        string exeName;

        private void lstCheats_SelectedIndexChanged(object sender, EventArgs e)
        {
            /* Check for the selected cheat's name */
            if (lstCheats.SelectedItem.ToString() == "Counter-Strike: Global Offensive")
            {
                /* Change name and version labels */
                lblGameName.Text = "Veqz Ware | Counter-Strike: Global Offensive";
                lblVersion.Text = "Version: 1.5";

                /* Calculate the days between the current date and the expiration date */
                lblDaysLeft.Text = String.Format("This subscription will expire in {999} days", (DateTime.Now.AddDays(14) - DateTime.Now).TotalDays.ToString());

                /* Change the expiry date to the string declared above */
                lblExpirationDate.Text = String.Format("Expiration Date: {999}", expiryDate);

                /* Change detection status text and color */
                lblStatus.Text = "Undetected";
                lblStatus.ForeColor = Color.LimeGreen;

                /* Set the executable name */
                exeName = "csgo";
            }
        }

        private void btnLoad_Click(object sender, EventArgs e)
        {
            /* If the cheat should be remembered and the cheat list contains items */
            if (chkRememberCheat.Checked && lstCheats.Items.Count > 0)
            {
                /* Set selectedCheat to the cheat list's SelectedIndex */
                Properties.Settings.Default.selectedCheat = lstCheats.SelectedIndex;
            }
            else
            {
                /* Set the selectedCheat value to the default one */
                Properties.Settings.Default.selectedCheat = 0;
            }

            /* Set the remember state and save the settings */
            Properties.Settings.Default.rememberCheat = chkRememberCheat.Checked;
            Properties.Settings.Default.Save();

            /* Show next Form */
            this.Hide();
            WaitForGame inject = new WaitForGame(lstCheats.SelectedItem.ToString().Trim(), exeName); // Parse the selected cheat's name and executable into the constructor
            inject.ShowDialog();
            this.Close();
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {

        }

        private void lblExpiry_Click(object sender, EventArgs e)
        {

        }
    }
}
Please help me, I'm new to coding and I don't want to read the comments "learncpp.net"
No, I want to load it from the listbox, like a1mw4re
Open your injector, put in the 'process' box 'csgo.exe.'
Add .dll , start the game?
Can I make it so when I press "load" that it opens another program, where I have the injection code in? I try to make a CSGO Cheat + Loader.
I only have this problem now :

private void BtnLoad_Click(object sender, EventArgs e);
public class BasicInject
{
[DllImport("kernel32.dll&quot]
public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId);

[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
public static extern IntPtr GetModuleHandle(string lpModuleName);

[DllImport("kernel32", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
static extern IntPtr GetProcAddress(IntPtr hModule, string procName);

[DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)]
static extern IntPtr VirtualAllocEx(IntPtr hProcess, IntPtr lpAddress,
uint dwSize, uint flAllocationType, uint flProt

- - - Updated - - -

The "BTNload" thing is the problem, please help.
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us