Mouse Tık Programı
Yazılım için mouse.cs dosyasını indirmelisiniz.
Kaynak Kodu :
// C# Programlama Dili
// zafercavdar
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 Bounty;
namespace CursorSet
{
public partial class Form1 : Form
{
Mouse MyMouse = new Mouse();
int sayac = 0;
public Form1()
{
InitializeComponent();
timer1.Start();
}
private void Form1_Load(object sender, EventArgs e)
{
}
protected override bool ProcessDialogKey(Keys keyData)
{
if (keyData == Keys.Left)
{
int x = 177;
int y = 113;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
sayac++;
label6.Text = sayac + "";
progressBar1.Value = sayac;
}
else if (keyData == Keys.Right)
{
int x = 372;
int y = 120;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
sayac++;
label6.Text = sayac + "";
progressBar1.Value = sayac;
}
else if (keyData == Keys.Up)
{
int x = 273;
int y = 81;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
sayac++;
label6.Text = sayac + "";
progressBar1.Value = sayac;
}
else if (keyData == Keys.Down)
{
int x = 263;
int y = 181;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
sayac++;
label6.Text = sayac + "";
progressBar1.Value = sayac;
}
if (keyData == Keys.P)
timer2.Stop();
if (keyData == Keys.R)
timer2.Start();
if (keyData == Keys.M)
{
int x = 893;
int y = 626;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
timer2.Stop();
}
return base.ProcessDialogKey(keyData);
}
private void button1_Click(object sender, EventArgs e)
{
int x = 872;
int y = 271;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
Cursor.Position = new Point(273, 115);
MyMouse.SendDoubleClick();
MyMouse.SendDoubleClick();
}
private void button2_Click(object sender, EventArgs e)
{
int x = 872;
int y = 337;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
Cursor.Position = new Point(273, 115);
MyMouse.SendDoubleClick();
MyMouse.SendDoubleClick();
}
private void timer1_Tick(object sender, EventArgs e)
{
label1.Text = System.Windows.Forms.Cursor.Position.X + "";
label4.Text = System.Windows.Forms.Cursor.Position.Y + "";
}
private void button2_Click_1(object sender, EventArgs e)
{
int x = 903;
int y = 303;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
Cursor.Position = new Point(273, 115);
MyMouse.SendDoubleClick();
MyMouse.SendDoubleClick();
}
private void button4_Click(object sender, EventArgs e)
{
int x = 840;
int y = 303;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
Cursor.Position = new Point(273, 115);
MyMouse.SendDoubleClick();
MyMouse.SendDoubleClick();
}
private void timer2_Tick(object sender, EventArgs e)
{
Cursor.Position = new Point(273, 115);
MyMouse.SendDoubleClick();
}
private void label6_Click(object sender, EventArgs e)
{
}
}
}
// zafercavdar
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 Bounty;
namespace CursorSet
{
public partial class Form1 : Form
{
Mouse MyMouse = new Mouse();
int sayac = 0;
public Form1()
{
InitializeComponent();
timer1.Start();
}
private void Form1_Load(object sender, EventArgs e)
{
}
protected override bool ProcessDialogKey(Keys keyData)
{
if (keyData == Keys.Left)
{
int x = 177;
int y = 113;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
sayac++;
label6.Text = sayac + "";
progressBar1.Value = sayac;
}
else if (keyData == Keys.Right)
{
int x = 372;
int y = 120;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
sayac++;
label6.Text = sayac + "";
progressBar1.Value = sayac;
}
else if (keyData == Keys.Up)
{
int x = 273;
int y = 81;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
sayac++;
label6.Text = sayac + "";
progressBar1.Value = sayac;
}
else if (keyData == Keys.Down)
{
int x = 263;
int y = 181;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
sayac++;
label6.Text = sayac + "";
progressBar1.Value = sayac;
}
if (keyData == Keys.P)
timer2.Stop();
if (keyData == Keys.R)
timer2.Start();
if (keyData == Keys.M)
{
int x = 893;
int y = 626;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
timer2.Stop();
}
return base.ProcessDialogKey(keyData);
}
private void button1_Click(object sender, EventArgs e)
{
int x = 872;
int y = 271;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
Cursor.Position = new Point(273, 115);
MyMouse.SendDoubleClick();
MyMouse.SendDoubleClick();
}
private void button2_Click(object sender, EventArgs e)
{
int x = 872;
int y = 337;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
Cursor.Position = new Point(273, 115);
MyMouse.SendDoubleClick();
MyMouse.SendDoubleClick();
}
private void timer1_Tick(object sender, EventArgs e)
{
label1.Text = System.Windows.Forms.Cursor.Position.X + "";
label4.Text = System.Windows.Forms.Cursor.Position.Y + "";
}
private void button2_Click_1(object sender, EventArgs e)
{
int x = 903;
int y = 303;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
Cursor.Position = new Point(273, 115);
MyMouse.SendDoubleClick();
MyMouse.SendDoubleClick();
}
private void button4_Click(object sender, EventArgs e)
{
int x = 840;
int y = 303;
Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(x, y);
MyMouse.SendDoubleClick();
Cursor.Position = new Point(273, 115);
MyMouse.SendDoubleClick();
MyMouse.SendDoubleClick();
}
private void timer2_Tick(object sender, EventArgs e)
{
Cursor.Position = new Point(273, 115);
MyMouse.SendDoubleClick();
}
private void label6_Click(object sender, EventArgs e)
{
}
}
}