C
C#5d ago
Chop

✅ AUTOCLICKER

Trying to make an auto clicker when you hold down the left it doesn't work..
C#
while (true)
{
if (GetAsyncKeyState(0x0002) < 0) //0x0002 = mousebuttonleftdown
{
enableclicker = !enableclicker;
Console.WriteLine("E");
Thread.Sleep(mili);
Mouselick();
}

Thread.Sleep(200);
}
C#
while (true)
{
if (GetAsyncKeyState(0x0002) < 0) //0x0002 = mousebuttonleftdown
{
enableclicker = !enableclicker;
Console.WriteLine("E");
Thread.Sleep(mili);
Mouselick();
}

Thread.Sleep(200);
}
24 Replies
Buddy
Buddy4d ago
Autoclicker for what?
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Chop
ChopOP4d ago
Its c#? just an autoclicker Using console
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Chop
ChopOP4d ago
Anything Just a normal autoclicker when i hold the left button it autoclicks and when i let go it stops
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Chop
ChopOP4d ago
No If i hold the left mouse button it starts the autoclicking but when i let it go it stops..
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Chop
ChopOP4d ago
What is your question?
sibber
sibber4d ago
the question is what are you going to use it for
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Cali_West
Cali_West4d ago
I'm gonna go ahead and assume the use case was for gaming. But I can think of an actual legit use case for mouse-click mocking: QA testing.
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
sibber
sibber4d ago
well even if we help them any anti cheat will easily catch anything using SendInput
Cali_West
Cali_West4d ago
Is SendInput a .NET API?
sibber
sibber4d ago
no a windows api you either use that or write a driver afaik
Cali_West
Cali_West4d ago
Oh really. okay. It got me thinking: there may some difficult tasks to perform in Windows purely via keyboard shortcut that might be able to be made a bit simpler if you could mock the mouse as part of it
sibber
sibber4d ago
(for mouse input) there are definitely legit use cases like the everything people make with ahk
Cali_West
Cali_West4d ago
yeah I have ahk
sibber
sibber4d ago
oh yeah i just remembered $ahk
MODiX
MODiX4d ago
AutoHotkey.Interop 1.0.0.1
This project is a basic wrapper around HotKeyIt's AHKDLL (aka AutoHotkey_H) for .Net Projects.
Cali_West
Cali_West4d ago
oh it has its own server. thanks for the invite 😄
sibber
sibber4d ago
lol i didnt know that either
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?