Block

02/25/2013 15:09 szymek111#1
Hi i have problem i writing a trainer for game and i don't know how i can block functions.When i click Ready i need to block all functions : Soo i don't click on Help,Website,buttons etc...


Sorry my english is bad :C
02/25/2013 16:55 'Heaven.#2
Code:
button1.Enabled = false;
and for unblocking
Code:
button1.Enabled = true;
02/25/2013 17:16 szymek111#3
Omg...Block functions when i click ready but dont block really i need this to be unblocked but i can't click this...Soo when i click Help this dont work


Sry for my english
02/25/2013 17:39 reCougar#4
Who the fuck should understand this ?
02/25/2013 17:46 szymek111#5
Omg...Sooo please close this thread i use the normally block function :D
02/25/2013 18:13 snow#6
bool enabled = false;

(function for the click) {
enabled = !enabled;
if (enabled) {

// do what you want to do
} else {

// do nothing

}

}