Skip to content
This repository has been archived by the owner on Sep 7, 2019. It is now read-only.

Commit

Permalink
Cleared Unit1.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
vllur committed Jun 3, 2018
1 parent f086fc4 commit 71270fa
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions Unit1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
#include <windows.h>
#include <cstdio>
#include <iterator>
#include <fstream>
#include "Unit1.h"
#include <iostream>
#include <sstream>
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
Expand All @@ -26,8 +23,8 @@ __fastcall TClickBot::TClickBot(TComponent* Owner)
POINT cur; //variable for actual mouse position
std::vector<POINT> t_cur; //vector of saved positions
std::vector<String> t_char; //for displaying points in the listbox
String s; //string for displaying points
int p = 0; //an iterator for mouse clicking
String s; //string for displaying actual point
unsigned int p = 0; //an iterator for mouse clicking

void click()
{
Expand Down Expand Up @@ -92,15 +89,15 @@ void __fastcall TClickBot::Timer2Timer(TObject *Sender)

void __fastcall TClickBot::Button3Click(TObject *Sender)
{
ListBox1->Clear(); //it just clears the listbox
ListBox1->Clear();
}
//---------------------------------------------------------------------------


void __fastcall TClickBot::Button4Click(TObject *Sender)
{
ListBox1->Clear();
for (int i=0; i < t_cur.size(); i++)
for (unsigned int i=0; i < t_cur.size(); i++)
{
s = IntToStr(t_cur[i].x) + " : " + IntToStr(t_cur[i].y);
ListBox1->Items->Add(s);
Expand All @@ -125,10 +122,6 @@ void __fastcall TClickBot::Button5Click(TObject *Sender)
}
//---------------------------------------------------------------------------





void __fastcall TClickBot::Button8Click(TObject *Sender)
{
Timer1->Interval=1;
Expand Down Expand Up @@ -167,13 +160,14 @@ void __fastcall TClickBot::Button7Click(TObject *Sender)

void __fastcall TClickBot::Howtouse1Click(TObject *Sender)
{
ShellExecute(0, 0, "http://vellur.mikr.us/clickbot", 0, 0 , SW_SHOW );
ShellExecute(0, 0, "https://github.com/vellurpatrick/ClickBot/blob/master/README.md", 0, 0 , SW_SHOW );
}
//---------------------------------------------------------------------------

void __fastcall TClickBot::Mywebsite1Click(TObject *Sender)
{
ShellExecute(0, 0, "http://vellur.mikr.us", 0, 0 , SW_SHOW );
ShellExecute(0, 0, "https://github.com/vellurpatrick", 0, 0 , SW_SHOW );
}
//---------------------------------------------------------------------------


0 comments on commit 71270fa

Please sign in to comment.