Quantcast
Channel: HAKER - Forum Komputerowe
Viewing all articles
Browse latest Browse all 4549

Błąd podczas pisania bota potrzebna szybka pomoc!

$
0
0
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.

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

#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);
}
//---------------------------------------------------------------------------

Viewing all articles
Browse latest Browse all 4549

Trending Articles


TRX Antek AVT - 2310 ver 2,0


Автовишка HAULOTTE HA 16 SPX


POTANIACZ


Zrób Sam - rocznik 1985 [PDF] [PL]


Maxgear opinie


BMW E61 2.5d błąd 43E2 - klapa gasząca a DPF


Eveline ➤ Matowe pomadki Velvet Matt Lipstick 500, 506, 5007


Auta / Cars (2006) PLDUB.BRRip.480p.XviD.AC3-LTN / DUBBING PL


Peugeot 508 problem z elektroniką


AŚ Jelenia Góra