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
Code:
namespace AutoClickerl.test
{
class Program
{
[System.Runtime.InteropServices.DllImport("user32.dll",
CharSet=System.Runtime.InteropServices.CharSet.Auto,
CallingConvention=System.Runtime.InteropServices.CallingConvention.StdCall)]
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);
System.Threading.Thread.Sleep(100);
mouse_event(MOUSEEVENTF_LEFTUP, i_x, i_y, 0, 0);
}
}
}






