Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

C++ Jak Zrobić Bota ?


Rekomendowane odpowiedzi

Opublikowano

Mam pytanie jak stworzuć bota wciskającego co 20 sekund klawisz T ?? Chodzi mi o to rzebym w Visual C++ 2008 SE postawił buttona a w ustawieniach bottona wkleił coś że po wciśnięciu buttona bot co 20 sek. wciskał klawisz T.

 

Ustwienia buttona

#pragma once


namespace TBot {

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;

/// <summary>
/// Summary for Form1
///
/// WARNING: If you change the name of this class, you will need to change the
///          'Resource File Name' property for the managed resource compiler tool
///          associated with all .resx files this class depends on.  Otherwise,
///          the designers will not be able to interact properly with localized
///          resources associated with this form.
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:
	Form1(void)
	{
		InitializeComponent();
		//
		//TODO: Add the constructor code here
		//
	}

protected:
	/// <summary>
	/// Clean up any resources being used.
	/// </summary>
	~Form1()
	{
		if (components)
		{
			delete components;
		}
	}
private: System::Windows::Forms::Button^  button1;
protected: 
private: System::Windows::Forms::Label^  label1;

private:
	/// <summary>
	/// Required designer variable.
	/// </summary>
	System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
	/// <summary>
	/// Required method for Designer support - do not modify
	/// the contents of this method with the code editor.
	/// </summary>
	void InitializeComponent(void)
	{
		this->button1 = (gcnew System::Windows::Forms::Button());
		this->label1 = (gcnew System::Windows::Forms::Label());
		this->SuspendLayout();
		// 
		// button1
		// 
		this->button1->Location = System::Drawing::Point(84, 51);
		this->button1->Name = L"button1";
		this->button1->Size = System::Drawing::Size(124, 35);
		this->button1->TabIndex = 0;
		this->button1->Text = L"Start!";
		this->button1->UseVisualStyleBackColor = true;
		this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
		// 
		// label1
		// 
		this->label1->AutoSize = true;
		this->label1->Location = System::Drawing::Point(54, 9);
		this->label1->Name = L"label1";
		this->label1->Size = System::Drawing::Size(182, 13);
		this->label1->TabIndex = 1;
		this->label1->Text = L"T-Bot wciśnij Start! aby włączyć bota";
		this->label1->Click += gcnew System::EventHandler(this, &Form1::label1_Click);
		// 
		// Form1
		// 
		this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
		this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
		this->ClientSize = System::Drawing::Size(292, 127);
		this->Controls->Add(this->label1);
		this->Controls->Add(this->button1);
		this->Name = L"Form1";
		this->Text = L"T-Bot";
		this->ResumeLayout(false);
		this->PerformLayout();

	}
#pragma endregion
private: System::Void label1_Click(System::Object^  sender, System::EventArgs^  e) {
		 }
private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
		 }
};
}

 

Jeśli morzecie zmieńcie coś w tym żeby było jak muwiłem będe wdzięczny dam + albo - co chcecie :]

11183963_4_17.png

 

 

Zbieram - ;D

Opublikowano

Dajesz timer, ustawiasz Interval na ile tam chcesz (w ms) - czyli co ile ma sie wykonywać dana akcja, klikając 2x na button piszesz "timer1->Start();"

I teraz klikasz 2x na timer i piszesz:

SendKeys::Send("T");

 

Włala :)

Opublikowano

uzyj gotowych, coś to programowanie ci nie idzie .

opanuj najpierw winapi i obsługe klawiatury bo w grach działa całkiem inaczej niż w systemie

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

Opublikowano

Jak w grach chcesz zastosować to trzeba chyba napisać kod, który znajdzie okno gry, zmieniał pamięć itp.

GrottyCracker22.png

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...