Guest User

aimbotforpixelc#

a guest
Nov 28th, 2020
4,200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.29 KB | None | 0 0
  1. using System;
  2. using System.Windows.Forms;
  3. using AutoItX3Lib;
  4. using System.Runtime.InteropServices;
  5. using System.Threading;
  6.  
  7. namespace aimboosterHACK
  8. {
  9.     public partial class Form1 : Form
  10.     {
  11.         AutoItX3 au3 = new AutoItX3();
  12.  
  13.         [DllImport("user32.dll")]
  14.  
  15.         static extern short GetAsyncKeyState(Keys vKey);
  16.         public Form1()
  17.         {
  18.             InitializeComponent();
  19.         }
  20.  
  21.         private void Form1_Load(object sender, EventArgs e)
  22.         {
  23.             Thread AB = new Thread(AIMBOT) { IsBackground = true };
  24.             AB.Start();
  25.         }
  26.  
  27.         void AIMBOT()
  28.         {
  29.             while (true)
  30.             {
  31.                 if (GetAsyncKeyState(Keys.XButton2)<0)
  32.                 {
  33.                     try
  34.                     {
  35.                         object pix = au3.PixelSearch(661, 337, 1262, 757, 0xFFDBC3);
  36.                         if (pix.ToString() != "1")
  37.                         {
  38.                             object[] pixCoord = (object[])pix;
  39.                             au3.MouseClick("LEFT", (int)pixCoord[0], (int)pixCoord[1], 1, 1);
  40.                         }
  41.                     }
  42.  
  43.                     catch { }
  44.                    
  45.                 }
  46.                 Thread.Sleep(1);
  47.             }
  48.         }
  49.     }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment