Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

Aaudiio

@Aaudiio
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • C# Keybind for Autoclicker
    A Aaudiio

    Thanks a lot. As you can tell, I know almost nothing. I'm just trying to pick up on the basics by trying to make things.

    C# csharp linq graphics help question

  • C# Keybind for Autoclicker
    A Aaudiio

    Hey. I'm looking for help with my autoclicker. I got it working with buttons, but I need keybinds instead.

    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;

    namespace auto_click
    {

    public partial class Form1 : Form
    {
    
        
        \[System.Runtime.InteropServices.DllImport("user32.dll")\]
        public static extern void mouse\_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);
    
        public const int MOUSEEVENTF\_LEFTDOWN = 0x02;
        public const int MOUSEEVENTF\_LEFTUP = 0x04;
        public const int MOUSEEVENTF\_RIGHTDOWN = 0x08;
        public const int MOUSEEVENTF\_RIGHTUP = 0x10;
    
    
    
        
        public void MouseClick()
        {
            mouse\_event(MOUSEEVENTF\_LEFTDOWN, 0, 0, 0, 0);
            mouse\_event(MOUSEEVENTF\_LEFTUP, 0, 0, 0, 0);
        }
        public Form1()
        {
            InitializeComponent();
        }
    
    
        private void timer1\_Tick(object sender, EventArgs e)
        {
            MouseClick();
        }
    
        private void Form1\_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode.ToString() == "F") ;
            timer1.Enabled = true;
        }
    }
    

    }

    Any idea why it doesn't work?

    REEEEEEEEEEEEH

    C# csharp linq graphics help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups