Beispiel #1
0
 private void ClickEvent(object sender, EventArgs e)
 {
     try
     {
         Console.WriteLine("Left mouse click!");
         MouseHook.stop();
         getDetails();
     }
     catch { }
 }
Beispiel #2
0
 private void buttonNew_Click(object sender, EventArgs e)
 {
     try
     {
         MouseHook.Start();
         status = true;
         reset();
     }
     catch { }
 }
Beispiel #3
0
 private void buttonColorBox_Click(object sender, EventArgs e)
 {
     try
     {
         MouseHook.stop();
         status = false;
         DialogResult colorResult = colorDialogColor.ShowDialog();
         // See if user pressed ok.
         if (colorResult == DialogResult.OK)
         {
             // Set form background to the selected color.
             pixelColor = colorDialogColor.Color;
             getDetails();
         }
         else
         {
             MouseHook.Start();
             status = true;
         }
     }
     catch { }
 }
Beispiel #4
0
 public VSColorPicker()
 {
     InitializeComponent();
     MouseHook.Start();
     MouseHook.MouseAction += new EventHandler(ClickEvent);
 }