Categories > Coding > C# >
I don't know where to paste this code.
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";
}
Replied
oh god...
/chars
Cancel
Post
Replied
Make a timer
Cancel
Post
Discord : Doctor Doom#0550
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.
Cancel
Post
https://media.discordapp.net/attachments/994643402949926956/1004560140252495960/uqJXQIda.gif
Discord: Ad#1085; Don't hesitate to DM me if you need help/anything.
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
Cancel
Post
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
Im not really active anymore, so alot of my information isnt updated.
https://media.discordapp.net/attachments/836952000876511252/950508582892367912/pigeon_siggy.png
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";
Cancel
Post
Replied
how do i dislike a post
Cancel
Post
"Questionable intellegence, but I like the mystery" - CubeFaces
https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png
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";
}
}
Cancel
Post
new wip exploit coming soon
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
Cancel
Post
Random quote here...
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post