Register for your free account! | Forgot your password?

You last visited: Today at 00:41

  • Please register to post and access all features, it's quick, easy and FREE!

Problem with AutoClicker

Old   #1
elite*gold: 0
Join Date: Oct 2005
Posts: 14
Received Thanks: 8
Problem with AutoClicker

Hello everyone,
I'm working on a new autoclicker that i hope to publish soon,
Have the pattern and everything set quite good, also tested my code on non-conquer environment.
The code is on C# and the problem is that it seems that CO ignores the mouse commands i make.
i used the user32.dll and the mouse_event methode,
while testing on any other "surface" the prgram runs as it should, but while the cursor is above the CO window the mouse commands wont execute.

tried to add a delay between the button down and up (although CO reacts to button down without the need of releasing the button), tried to add the ABSOLUTE attribute of mouse event as suggested on msdn. no luck.

an example of how i use the dll is attached.
hope that someone could help

namespace AutoClickerl.test
    class Program

        public static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint cButtons, uint dwExtraInfo);

        private const int MOUSEEVENTF_LEFTDOWN = 0x02;
        private const int MOUSEEVENTF_LEFTUP = 0x04;
        private const int MOUSEEVENTF_RIGHTDOWN = 0x08;
        private const int MOUSEEVENTF_RIGHTUP = 0x10;

        static void Main(string[] args)
            Console.WriteLine("hello autoclicker user!");
            /*Code Code Code - using LeftClick for instance*/

       public static void LeftClick(uint i_x, uint i_y)
            Cursor.Position = new System.Drawing.Point((int)i_x, (int)i_y);
            mouse_event(MOUSEEVENTF_LEFTDOWN, i_x, i_y, 0, 0);
            mouse_event(MOUSEEVENTF_LEFTUP, i_x, i_y, 0, 0);


DoubleV is offline  
Old 09/11/2013, 06:27   #2
elite*gold: 12
Join Date: Jul 2011
Posts: 7,083
Received Thanks: 3,396
Moved to the right section.

Spirited is offline  

« any programer help me please | [very serious] Expert Only please . »

Similar Threads
autoclicker problem
08/03/2007 - CO2 Main - Discussions / Questions - 0 Replies
Hi, I've been using autoclickers for a long time to fix my skills but I ahd to reinstall my windows xp service pack 2 last week and since I did that every time I try to run an autoclicker my windows crashes and restart my PC. Anyone can help me?

All times are GMT +1. The time now is 00:41.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.