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

PPM w C++

$
0
0
Witam chciałem napisać bota do gry http://www.youtube.com/watch?v=i3Ox4M_dvVE z tego linku wszystko fajnie działa ale potrzebuje jeszcze PPM a nie wiem nawet jak się za to zabrać
i tutaj moja prośba jak by ktoś mógł dopisać linijki na PPM i powiedzieć gdzie je wklepać dodatkowo przydał by się inny hot na to niż TAB który mam ustawiony na LPM np.F12

z góry dziękuję.




Kod php:

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

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

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

POINT cur;
std::vector<POINTt_cur;
String s;
int p;

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

void __fastcall TForm1::Button1Click(TObject *Sender)
{
        
Timer1->Enabled true;
        
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
        
Timer1->Enabled false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
        
Panel1->Color RGB(rand()%255rand()%255rand()%255);
        if (
t_cur.size()) {
                
SetCursorPos(t_cur[p].xt_cur[p].y);
                
mouse_event(MOUSEEVENTF_LEFTDOWN0000);
                
mouse_event(MOUSEEVENTF_LEFTUP0000);
                
p++;
        }
        else 
0;

}
//---------------------------------------------------------------------------
void __fastcall TForm1::Timer2Timer(TObject *Sender)
{
        
cur.Mouse->CursorPos.x;
        
cur.Mouse->CursorPos.y;
        
Label1->Caption IntToStr(cur.x) + " " IntToStr(cur.y);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button3Click(TObject *Sender)
{
        
ListBox1->Clear();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button4Click(TObject *Sender)
{
        for (
int i 0t_cur.size(); i++) {
                 
IntToStr(t_cur[i].x) + " : " IntToStr(t_cur[i].y);
                 
ListBox1->Items->Add(s);
        }
}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormCreate(TObject *Sender)
{
        
RegisterHotKey(Form1->Handle10VK_SPACE);
        
RegisterHotKey(Form1->Handle20VK_TAB);
        
0;
}
//--------------------------------------------------------------------------- 


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