Categories > Coding > C# >

I don't know where to paste this code.

Posts: 3

Threads: 2

Joined: Feb, 2022

Reputation: 0

Posted

So I have some code that checks if its attached and it changes the lettering if its attached and I'm just wondering where do I paste the code I'm really confused on this and I feel really dumb that I don't know this

 

if (api.isAPIAttached()) {

button3.Text = "Attached";
} else {

button3.Text = "Attach";

}

 

  • 0

TERIHAX

i say im gay as a joke 🙀

Posts: 1796

Threads: 92

Joined: Jul, 2020

Reputation: 30

Replied

oh god...

 

/chars

  • 0

Posts: 1668

Threads: 10

Joined: Sep, 2020

Reputation: 59

Replied

Make a timer 

  • 1

Discord : Doctor Doom#0550

Posts: 3

Threads: 2

Joined: Feb, 2022

Reputation: 0

Replied

 

@0x777_ 

Thank you this worked

  • 0

Posts: 317

Threads: 37

Joined: Feb, 2021

Reputation: 8

Replied

if (api.isAPIAttached()==true) 
{
button3.Text = "Attached";
} 
else 
{
button3.Text = "Attach";
}
 

 

Above code works. Use this
And I suggest  learning C# before moving forward.

  • 0

https://media.discordapp.net/attachments/994643402949926956/1004560140252495960/uqJXQIda.gif

Read me.

Discord: Ad#1085; Don't hesitate to DM me if you need help/anything.

Beastsploits

Beast aka Kappaladi

Posts: 116

Threads: 27

Joined: Dec, 2019

Reputation: 3

Replied

@AlexSyndrome bro what.... He was never asking for the "correct code" Also api.isAPIAttached() Is already checks that .... Holy f*ck ur making me loose braincells No offense

  • 0

Know c# and trying to expand my knowledge in it.


Rep Goal [1,2,3,4,5,6,7,8,9,10]


Rickrolled Talan2016 : https://cdn.discordapp.com/attachments/852018376368979974/852033650593497128/unknown.png

swiney2

swiney2#8267

vip

Posts: 197

Threads: 8

Joined: Jul, 2021

Reputation: 20

Replied

@AlexSyndrome Are you stupid

  • 0

Im not really active anymore, so alot of my information isnt updated. 

https://media.discordapp.net/attachments/836952000876511252/950508582892367912/pigeon_siggy.png

Moon

Moon

vip

Posts: 6198

Threads: 262

Joined: Aug, 2020

Reputation: 77

Replied

@_realnickk

Nice profile pic

  • 0

Orbx

none

Posts: 27

Threads: 1

Joined: Feb, 2022

Reputation: 1

Replied

@AlexSyndrome your code doesnt fix/improve anything you make it worse.

anyways make timer like what vortex say, and do this with ternary operator instead.

button3.Text = api.IsAPIAttached() ? "Attached" : "Attach";
  • 0

SeizureSalad

i love femboys

Posts: 1018

Threads: 73

Joined: Mar, 2021

Reputation: 37

Replied

how do i dislike a post

  • 0

"Questionable intellegence, but I like the mystery" - CubeFaces

https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png

hesezadi

hesezadi

Posts: 7

Threads: 4

Joined: Feb, 2022

Reputation: 0

Replied

      As vortex say and what the other guy said (i dont remember his name and im too lazy dont ask), use a timer or just use a ternary operator.

      If though you want the long way (but easy to understand - you can also add some more stuff if youd like idc), with forecolors (basically text                colors), you can do this (i know its bad but dont flame me because it works just fine)

      *i used a label here instead of a button.

 

        ExploitAPI WRD = new ExploitAPI(); //variable (feel free to put this on the top, but dont put this inside the parenthesis below so it can be                  available for every control

        // ------------------------------------------------------------------------

        private void timer3_Tick(object sender, EventArgs e)

        {

            bool status = WRD.isAPIAttached();

            if (status)

            {

                this.label2.ForeColor = Color.Silver;

                this.label2.Text = "Attached";

            }

            else

            {

                this.label2.ForeColor = Color.DimGray;

                this.label2.Text = "Idle";

            }

        }

  • 0

new wip exploit coming soon

Posts: 1598

Threads: 166

Joined: Apr, 2021

Reputation: 13

Replied

make a timer, make a bool, put the code in the timer when it ticks, set the timer to enabled and start it in form_load. that's all, just use your brain

  • 0

Random quote here...

Users viewing this thread:

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