Autolt nasıl kullanılır?

0x91

Hectopat
Katılım
23 Şubat 2021
Mesajlar
1.341
Çözümler
6
Daha fazla  
Cinsiyet
Erkek
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using AutoItX3Lib; using System.Threading; using System.Runtime.InteropServices; namespace lolautoscript { public partial class Form1 : Form { IntPtr handle; string WINDOW_NAME = "League of Legends"; AutoItX3 au3 = new AutoItX3(); public RECT rect; public struct RECT { public int left, top, right, bottom; } [DllImport("user32.dll")] private static extern IntPtr GetForegroundWindow(); [DllImport("user32.dll")] public static extern IntPtr FindWindow(string IpClassName, string IpWindowName); [DllImport("user32.dll")] static extern bool GetWindowRect(IntPtr hwnd, out RECT IpRect); int col; public Form1() { InitializeComponent(); } private void checkBox1_CheckedChanged(object sender, EventArgs e) { } private void Form1_Load(object sender, EventArgs e) { Thread AA = new Thread(auto_accept) { IsBackground = true }; AA.Start(); } private void auto_accept() { while (true) { if (checkBox1.Checked) { getwindowrectangle(); col = au3.PixelGetColor(rect.left + 584, rect.top + 555); if (col == 0x1E252A) { Thread.Sleep(20); au3.MouseMove(rect.left + 555, 1); au3.MouseClick("LEFT"); Thread.Sleep(20); au3.MouseClick("LEFT"); Thread.Sleep(5000); } } Thread.Sleep(20); } } void getwindowrectangle() { handle = FindWindow(null, WINDOW_NAME); GetWindowRect(handle, out rect); } } }



Şu videoyu izleyerek Auto accept yapmaya çalıştım
Bu içeriği görüntülemek için üçüncü taraf çerezlerini yerleştirmek için izninize ihtiyacımız olacak.
Daha detaylı bilgi için, çerezler sayfamıza bakınız.

Fakat çalışmadı ve autolt u neden kullandığımı anlamadım.
Visual Studio 2019
 
Uyarı! Bu konu 5 yıl önce açıldı.
Muhtemelen daha fazla tartışma gerekli değildir ki bu durumda yeni bir konu başlatmayı öneririz. Eğer yine de cevabınızın gerekli olduğunu düşünüyorsanız buna rağmen cevap verebilirsiniz.

Technopat Haberler

Yeni konular

Geri
Yukarı