Błąd podczas pisania bota potrzebna szybka pomoc!

eros1200

Użytkownik
Dołączył
Lipiec 3, 2013
Posty
3
Witam chciałem napisać bot'a zgodnie z tym filmem
http://www.youtube.com/watch?v=i3Ox4M_dvVE
i zaciąłem się na 21:46 podczas pisania listbox'a wyskoczył mi błąd
[C++ Error] Unit1.cpp(32): E2379 Statement missing ;
[C++ Warning] Unit1.cpp(49): W8018 Assigning unsigned long to TColor

Dodam że jestem totalnie zielony więc jakby ktoś mógł wytłumaczyć to tak żeby widział w której linijce, z góry dzięki za szybką pomoc.
Kod:
//---------------------------------------------------------------------------

#include <vcl.h>
#include <vector>
#pragma hdrstop

#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

POINT cur;
std::vector<POINT> t_cur;
String s;

void __fastcall TForm1::HotKey(TMessage &Msg)
{
        if (Msg.WParam == 1){
             Timer1->Enabled = false;
        }
        if (Msg.WParam == 2) {
             t_cur.push_back(cur);
             s = IntToStr(cur.x) + " : " + IntToStr(cur.y);
             ListBox1->Items->Add(s)
        }
}

void __fastcall TForm1::Button1Click(TObject *Sender)
{
        Timer1->Enabled = true;
        RegisterHotKey(Form1->Handle, 1, 0, VK_SPACE);
        RegisterHotKey(Form1->Handle, 2, 0, VK_TAB);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
        Timer1->Enabled = false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
        Panel1->Color = RGB(rand()%255, rand()%255, rand()%255);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Timer2Timer(TObject *Sender)
{
        cur.x = Mouse->CursorPos.x;
        cur.y = Mouse->CursorPos.y;
        Label1->Caption = IntToStr(cur.x) + " " + IntToStr(cur.y);
}
//---------------------------------------------------------------------------
 
Ostatnio edytowane przez moderatora:
Do góry Bottom