Click here to Skip to main content
12,511,648 members (49,144 online)
   

C#

 
GeneralRe: C# Performance Issue Pin
Richard MacCutchan17-Aug-14 21:34
protectorRichard MacCutchan17-Aug-14 21:34 
GeneralRe: C# Performance Issue Pin
SledgeHammer0118-Aug-14 4:46
memberSledgeHammer0118-Aug-14 4:46 
AnswerRe: C# Performance Issue Pin
Rob Philpott17-Aug-14 23:45
professionalRob Philpott17-Aug-14 23:45 
AnswerRe: C# Performance Issue Pin
Richard Deeming18-Aug-14 2:30
professionalRichard Deeming18-Aug-14 2:30 
GeneralRe: C# Performance Issue Pin
SledgeHammer0118-Aug-14 4:51
memberSledgeHammer0118-Aug-14 4:51 
GeneralRe: C# Performance Issue Pin
Richard Deeming18-Aug-14 7:31
professionalRichard Deeming18-Aug-14 7:31 
GeneralRe: C# Performance Issue Pin
SledgeHammer0118-Aug-14 8:31
memberSledgeHammer0118-Aug-14 8:31 
AnswerRe: C# Performance Issue Pin
Pete O'Hanlon18-Aug-14 3:09
protectorPete O'Hanlon18-Aug-14 3:09 
GeneralRe: C# Performance Issue Pin
SledgeHammer0118-Aug-14 4:52
memberSledgeHammer0118-Aug-14 4:52 
GeneralRe: C# Performance Issue Pin
Pete O'Hanlon18-Aug-14 4:56
protectorPete O'Hanlon18-Aug-14 4:56 
AnswerRe: C# Performance Issue Pin
jschell18-Aug-14 11:51
memberjschell18-Aug-14 11:51 
QuestionC#/JS problematic iteration with table... Pin
OmegaExtern16-Aug-14 17:23
memberOmegaExtern16-Aug-14 17:23 
AnswerRe: C#/JS problematic iteration with table... Pin
Richard MacCutchan16-Aug-14 21:11
protectorRichard MacCutchan16-Aug-14 21:11 
QuestionC# Keybind for Autoclicker Pin
Member 1101699616-Aug-14 16:39
memberMember 1101699616-Aug-14 16:39 
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

AnswerRe: C# Keybind for Autoclicker Pin
Zain Ul Abidin16-Aug-14 19:49
memberZain Ul Abidin16-Aug-14 19:49 
AnswerRe: C# Keybind for Autoclicker Pin
OmegaExtern16-Aug-14 20:44
memberOmegaExtern16-Aug-14 20:44 
GeneralRe: C# Keybind for Autoclicker Pin
Member 1101699616-Aug-14 20:47
memberMember 1101699616-Aug-14 20:47 
GeneralRe: C# Keybind for Autoclicker Pin
OmegaExtern16-Aug-14 20:50
memberOmegaExtern16-Aug-14 20:50 
Questioncheck array value exists Pin
scottichrosaviakosmos16-Aug-14 3:11
memberscottichrosaviakosmos16-Aug-14 3:11 
AnswerRe: check array value exists Pin
jlopez78816-Aug-14 3:34
memberjlopez78816-Aug-14 3:34 
GeneralRe: check array value exists Pin
scottichrosaviakosmos16-Aug-14 4:03
memberscottichrosaviakosmos16-Aug-14 4:03 
AnswerRe: check array value exists Pin
OriginalGriff16-Aug-14 3:39
protectorOriginalGriff16-Aug-14 3:39 
QuestionCatching exceptions on backgroundworker Pin
pjank4215-Aug-14 19:44
memberpjank4215-Aug-14 19:44 
QuestionRe: Catching exceptions on backgroundworker Pin
Richard MacCutchan15-Aug-14 21:25
protectorRichard MacCutchan15-Aug-14 21:25 
AnswerRe: Catching exceptions on backgroundworker Pin
pjank4216-Aug-14 1:50
memberpjank4216-Aug-14 1:50 
GeneralRe: Catching exceptions on backgroundworker Pin
Richard MacCutchan16-Aug-14 5:10
protectorRichard MacCutchan16-Aug-14 5:10 
AnswerRe: Catching exceptions on backgroundworker Pin
Eddy Vluggen16-Aug-14 2:10
professionalEddy Vluggen16-Aug-14 2:10 
AnswerRe: Catching exceptions on backgroundworker Pin
jschell17-Aug-14 9:56
memberjschell17-Aug-14 9:56 
GeneralRe: Catching exceptions on backgroundworker Pin
pjank4218-Aug-14 8:40
memberpjank4218-Aug-14 8:40 
QuestionMissing TCP Packets Pin
M Riaz Bashir15-Aug-14 19:24
memberM Riaz Bashir15-Aug-14 19:24 
AnswerRe: Missing TCP Packets Pin
Dave Kreskowiak16-Aug-14 4:29
mvpDave Kreskowiak16-Aug-14 4:29 
GeneralRe: Missing TCP Packets Pin
M Riaz Bashir16-Aug-14 19:54
memberM Riaz Bashir16-Aug-14 19:54 
AnswerRe: Missing TCP Packets Pin
Rob Philpott16-Aug-14 6:34
professionalRob Philpott16-Aug-14 6:34 
GeneralRe: Missing TCP Packets Pin
M Riaz Bashir16-Aug-14 19:54
memberM Riaz Bashir16-Aug-14 19:54 
QuestionThread Freeze when trying Abort Pin
Member 1098515215-Aug-14 12:17
memberMember 1098515215-Aug-14 12:17 
GeneralRe: Thread Freeze when trying Abort Pin
PIEBALDconsult15-Aug-14 12:47
memberPIEBALDconsult15-Aug-14 12:47 
QuestionSummary Report in GridView Pin
sk_ko14-Aug-14 22:02
membersk_ko14-Aug-14 22:02 
AnswerRe: Summary Report in GridView Pin
Chris Quinn14-Aug-14 22:36
memberChris Quinn14-Aug-14 22:36 
AnswerRe: Summary Report in GridView Pin
Mycroft Holmes14-Aug-14 23:00
professionalMycroft Holmes14-Aug-14 23:00 
GeneralScope of Share point and Silverlight Pin
Member 1059394814-Aug-14 3:40
memberMember 1059394814-Aug-14 3:40 
GeneralRe: Scope of Share point and Silverlight Pin
Richard MacCutchan14-Aug-14 4:22
protectorRichard MacCutchan14-Aug-14 4:22 
Questionhow do i make each combo box to show a dropdown of the value of the Quantity it has fetched. Pin
Member 1050484913-Aug-14 9:02
memberMember 1050484913-Aug-14 9:02 
SuggestionRe: how do i make each combo box to show a dropdown of the value of the Quantity it has fetched. Pin
RyanDev13-Aug-14 9:24
mvpRyanDev13-Aug-14 9:24 
QuestionHow to increment div count in path Pin
Member 1098388513-Aug-14 6:09
memberMember 1098388513-Aug-14 6:09 
Questionc# Play Video Fullscreen Pin
Member 416962813-Aug-14 5:20
memberMember 416962813-Aug-14 5:20 
AnswerRe: c# Play Video Fullscreen Pin
Simon_Whale13-Aug-14 5:41
professionalSimon_Whale13-Aug-14 5:41 
GeneralRe: c# Play Video Fullscreen Pin
Member 416962813-Aug-14 5:53
memberMember 416962813-Aug-14 5:53 
GeneralRe: c# Play Video Fullscreen Pin
Dave Kreskowiak13-Aug-14 6:05
mvpDave Kreskowiak13-Aug-14 6:05 
GeneralRe: c# Play Video Fullscreen Pin
Member 416962813-Aug-14 8:42
memberMember 416962813-Aug-14 8:42 
GeneralRe: c# Play Video Fullscreen Pin
Dave Kreskowiak13-Aug-14 12:27
mvpDave Kreskowiak13-Aug-14 12:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160929.1 | Last Updated 30 Sep 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid