Genel Araştırma
'makro' etiketi için arama sonuçları.
Araştırmada 1 sonuç bulundu
-
Basit bi makro yaptım kendime fakat bi süre çalıştıktan sonra kapat hatası veriyor sorunu çözemedim kodları ekliyorum. acaba nerde bi sorun var using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using AutoItX3Lib; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); DinleTusAyari(); } KeyboardHook tusDinleyici = new KeyboardHook(); AutoItX3 makro = new AutoItX3(); public void DinleTusAyari() { tusDinleyici.HookedKeys.Add(Keys.X); tusDinleyici.KeyDown += new KeyEventHandler(tusabasildiginda); } void tusabasildiginda(object sender, KeyEventArgs e) { button1.PerformClick(); e.Handled = true; } private void timer1_Tick(object sender, EventArgs e) { makro.Send(textBox1.Text); timer1.Interval = hScrollBar1.Value; } private void button1_Click(object sender, EventArgs e) { if (button1.Text == "BAŞLAT") { button1.Text = "DURDUR"; button1.BackColor = Color.Maroon; button1.ForeColor = Color.White; if (timer1.Enabled == false) timer1.Start(); } else { button1.Text = "BAŞLAT"; button1.BackColor = SystemColors.Control; button1.ForeColor = SystemColors.ControlText; if (timer1.Enabled == true) timer1.Stop(); } } private void hScrollBar1_Scroll(object sender, ScrollEventArgs e) { } private void label1_Click(object sender, EventArgs e) { } private void Form1_Load(object sender, EventArgs e) { } private void label1_Click_1(object sender, EventArgs e) { label1.Text = hScrollBar1.Value.ToString(); } } } :abow: