Page 4 of 5

Re: Whos' going to make the MapRusher?

Posted: Wed Jan 19, 2011 6:57 pm
by ShiunYean
I've only read about 20% of a C++ book...

Re: Whos' going to make the MapRusher?

Posted: Wed Jan 19, 2011 7:06 pm
by New|Life
LBYuan wrote:The book were making me nuts!@@
Btw any exercise for it?
Try to code a simple Win32 console calculator that can do addition, subtraction, multiplication and division first, that's a good exercise.

Re: Whos' going to make the MapRusher?

Posted: Wed Jan 19, 2011 8:29 pm
by albertng95
OMG.....tis gonna make me crazy reading those book = =

Re: Whos' going to make the MapRusher?

Posted: Wed Jan 19, 2011 8:42 pm
by SoullessSoul
albertng95 wrote:OMG.....tis gonna make me crazy reading those book = =
lol i haven siao wor

Re: Whos' going to make the MapRusher?

Posted: Wed Jan 19, 2011 8:51 pm
by Guilt-Gear
I haven't read those C++ books
Does it feel boring/makes you sleepy/eyes tired in the beggining when you first read it?

Re: Whos' going to make the MapRusher?

Posted: Wed Jan 19, 2011 8:58 pm
by SoullessSoul
Guilt-Gear wrote:I haven't read those C++ books
Does it feel boring/makes you sleepy/eyes tired in the beggining when you first read it?
some part xD

Re: Whos' going to make the MapRusher?

Posted: Wed Jan 19, 2011 11:02 pm
by LBYuan
SoullessSoul wrote:
Guilt-Gear wrote:I haven't read those C++ books
Does it feel boring/makes you sleepy/eyes tired in the beggining when you first read it?
some part xD
If I'm not wrong if you take programming in universiti you gonna read all the C++ books rite?

Re: Whos' going to make the MapRusher?

Posted: Wed Jan 19, 2011 11:11 pm
by Raiden
Hey someone help me on this:

Code: Select all

bool SSMFOn = false;

 void SSMFHotkey()
 {
	 for(;;Sleep(1)){
	 if (GetAsyncKeyState(VK_F1)) {
	 if (SSMFOn == false) {
			SSMFOn = true;
			hSSMF = NewThread(SSMouseFly);
			Form1->Label59->Caption = "Enabled";
			Form1->Label59->Font->Color = clGreen;
		  }

		 if (SSMFOn == true) {
	 SSMFOn = false;
	 TerminateThread(hSSMF, 0);
	 Form1->Label59->Caption = "Disabled";
	 Form1->Label59->Font->Color = clRed;
		  }
   }
	 }
  }
Is there something wrong on the code??? I can enable it by pressing F1 but not disable it.

Language: C++ Builder (RAD Studio)

Re: Whos' going to make the MapRusher?

Posted: Thu Jan 20, 2011 9:40 am
by New|Life
Raiden wrote:Hey someone help me on this:

Code: Select all

bool SSMFOn = false;

 void SSMFHotkey()
 {
	 for(;;Sleep(1)){
	 if (GetAsyncKeyState(VK_F1)) {
	 if (SSMFOn == false) {
			SSMFOn = true;
			hSSMF = NewThread(SSMouseFly);
			Form1->Label59->Caption = "Enabled";
			Form1->Label59->Font->Color = clGreen;
		  }

		 if (SSMFOn == true) {
	 SSMFOn = false;
	 TerminateThread(hSSMF, 0);
	 Form1->Label59->Caption = "Disabled";
	 Form1->Label59->Font->Color = clRed;
		  }
   }
	 }
  }
Is there something wrong on the code??? I can enable it by pressing F1 but not disable it.

Language: C++ Builder (RAD Studio)

Code: Select all

BOOL SSMFOn = FALSE;

void SSMFHotkey()
{
   for(;;Sleep(100))
   {
      if (GetAsyncKeyState(VK_F1) < 0)
      {
         if(!SSMFOn)
         {
            SSMFOn = TRUE;
            hSSMF = NewThread(SSMouseFly);
            Form1->Label59->Caption = "Enabled";
            Form1->Label59->Font->Color = clGreen;
         }
         else
         {
            SSMFOn = FALSE;
            TerminateThread(hSSMF, 0);
            Form1->Label59->Caption = "Disabled";
            Form1->Label59->Font->Color = clRed;
         }
      }
   }
}
It would be strange that if you can enable it in the first place, logically it can't be enabled because you specified two 'if', the moment it is enabled, it will be disabled in instant.

Re: Whos' going to make the MapRusher?

Posted: Thu Jan 20, 2011 11:02 am
by Raiden
New|Life wrote:
Raiden wrote:Hey someone help me on this:

Code: Select all

bool SSMFOn = false;

 void SSMFHotkey()
 {
	 for(;;Sleep(1)){
	 if (GetAsyncKeyState(VK_F1)) {
	 if (SSMFOn == false) {
			SSMFOn = true;
			hSSMF = NewThread(SSMouseFly);
			Form1->Label59->Caption = "Enabled";
			Form1->Label59->Font->Color = clGreen;
		  }

		 if (SSMFOn == true) {
	 SSMFOn = false;
	 TerminateThread(hSSMF, 0);
	 Form1->Label59->Caption = "Disabled";
	 Form1->Label59->Font->Color = clRed;
		  }
   }
	 }
  }
Is there something wrong on the code??? I can enable it by pressing F1 but not disable it.

Language: C++ Builder (RAD Studio)

Code: Select all

BOOL SSMFOn = FALSE;

void SSMFHotkey()
{
   for(;;Sleep(100))
   {
      if (GetAsyncKeyState(VK_F1) < 0)
      {
         if(!SSMFOn)
         {
            SSMFOn = TRUE;
            hSSMF = NewThread(SSMouseFly);
            Form1->Label59->Caption = "Enabled";
            Form1->Label59->Font->Color = clGreen;
         }
         else
         {
            SSMFOn = FALSE;
            TerminateThread(hSSMF, 0);
            Form1->Label59->Caption = "Disabled";
            Form1->Label59->Font->Color = clRed;
         }
      }
   }
}
It would be strange that if you can enable it in the first place, logically it can't be enabled because you specified two 'if', the moment it is enabled, it will be disabled in instant.
Thanks. It works. (I`m coding my bot lol)