Forum > General >

[HELP] How Do I Make Multi Api?

Posts: 1037

Threads: 78

Joined: Feb, 2021

Reputation: 75

Posted

Hello. So I wanna make my executor multi api but i want the checkboxes on a diffrent wpf not on the main wpf.But the problem i face is when it comes to inject and execution cause the button doesnt know what checkbox(api) was selected to inject or execute.

 

Love And Thank You

SpaceSpiffer

  • 0

https://media.discordapp.net/attachments/1013939973671624917/1027279180192292944/unknown.png
https://media.discordapp.net/attachments/1010670716062007347/1108945330847883274/image.png

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

so its pretty simple all you do is write code in like a few class files in c# and yea yea

  • 0

Bones

deez nuts

Posts: 286

Threads: 6

Joined: Mar, 2021

Reputation: 11

Replied

Use the Settings.settings File to save the Values and read from them. Set the Type to int and the name to whatever you like to.

If you don't have it: Project Properties > Settings > Create Settings File.

This is how i set it up for me

https://cdn.discordapp.com/attachments/843944847491596401/845391382670868510/unknown.png

You can use this to write to the Settings

Properties.Settings.Default.API = 1; //1 represents the first api you are gonna use. you can use string as type too but int are easier imo
Properties.Settings.Default.Save()

Inside your Inject and Execute Buttons you are gonna use an switch statement to check what API is selected.

Pseudocode:

            int API = Properties.Settings.Default.API;
            switch(API)
            {
                case 1:
                    firstapi.inject(); //or execute
                    break;

                case 2:
                    secondapi.Inject(); //or execute
                    break;
                    //and so on
            }

 

Hope it helped, if you have questions dm me

  • 0

Who's Deez?

chr1srbx

Developer @ Hydrogen

vip

Posts: 374

Threads: 20

Joined: Sep, 2020

Reputation: 22

Replied

simple tutorial

get radiobuttons then on the inject button add this code in

same goes for execute

if(radiobtnapi1.Checked == true)
{
//inject api1
}
if(radiobtnapi2.Checked == true)
{
//inject api2
}
  • 0

banan

Posts: 1037

Threads: 78

Joined: Feb, 2021

Reputation: 75

Replied

@64220Thank You This Helped Alot.

  • 0

Added

@66746Holy This Is Alot Thank You For Writing This All Out For Me.

  • 0

Added

@60947This Was Really Helpful Thank You.

  • 0

https://media.discordapp.net/attachments/1013939973671624917/1027279180192292944/unknown.png
https://media.discordapp.net/attachments/1010670716062007347/1108945330847883274/image.png

Bones

deez nuts

Posts: 286

Threads: 6

Joined: Mar, 2021

Reputation: 11

Replied

@Hiroku You're welcome, did it in 5 mins or something lol

  • 0

Who's Deez?

Users viewing this thread:

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