 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Saturn.32 Guest
|
Posted: Wed Aug 20, 2008 11:48 pm Post subject: Autoclicker macros |
|
|
I've been making autoclicker macros for a while, but for some reason I can't get them to get between 11-14 clicks per second, no matter what sleep times I use, or the way I write them. These are two examples of how I've been writing them.
| Code: |
$*LButton::
{
Loop
{
setmousedelay, 50
MouseClick, left,,, 1, 0
GetKeyState, state, LBUTTON, P
if state = U
{
Break
}
}
}
Return
|
| Code: |
$*~LButton::
{
Loop
{
SendInput {LButton Down}
Sleep 50
SendInput {LButton Up}
Sleep 50
GetKeyState, LButtonState, LButton, P
If LButtonState = U
Break
}
}
Return
|
50 is an example sleep time.
Anyway not matter what I do the clicks per second seems to jump from 10 clicks to 15 clicks persecond, but no where in between. Is this an AHK flaw or am I not doing something right? |
|
| Back to top |
|
 |
SpiderGames
Joined: 09 Jun 2008 Posts: 464 Location: Canada
|
Posted: Thu Aug 21, 2008 2:56 am Post subject: |
|
|
| Code: |
$*LButton::
Loop,
{
MouseClick, Left,
Sleep, 90
GetKeyState, LButtonState, LButton, P
If LButtonState = U
Break
}
|
_________________
Xfire: SpiderGames77 |
|
| Back to top |
|
 |
Saturn.32 Guest
|
Posted: Thu Aug 21, 2008 8:24 pm Post subject: |
|
|
Messing around with the sleeps on that auto clicker, I still get pretty much the same result except glitchy Thx for trying though. This is the site I'm using to count clicks per second. I got alot of 8-9-10's with sleeps as low as 8.
http://www.urban75.com/Mag/java7.html
goal is 120-140 clicks in 10 seconds.  |
|
| Back to top |
|
 |
aetratus
Joined: 22 Aug 2008 Posts: 1
|
Posted: Fri Aug 22, 2008 5:11 am Post subject: |
|
|
| Saturn.32 wrote: | Messing around with the sleeps on that auto clicker, I still get pretty much the same result except glitchy Thx for trying though. This is the site I'm using to count clicks per second. I got alot of 8-9-10's with sleeps as low as 8.
http://www.urban75.com/Mag/java7.html
goal is 120-140 clicks in 10 seconds.  |
| Code: |
#IfWinActive World Mouseclicking Competition! ; i have firefox configured to only display window titles, remove or alter this directive as needed
LButton::
MouseClick, left,,, 1, 100, D
Loop
{
MouseClick, left,,, 1, 100, U
If !GetKeyState("LButton", "P")
break
MouseClick, left,,, 1, 100, D
}
return
|
That gets me 158 or 159 in 10 seconds, a bit over 15 clicks per second. The paramter value 100 is the sleep before exiting the event (D or U)..and 100 is the max there. Hmm...tried it with a 0 delay per event and get the same results. Probably the java applet itself is the bottleneck there.
EDIT: | Code: |
SendMode Input
LButton::
Loop
{
MouseClick, left,,, 1, 0, D
MouseClick, left,,, 1, 0, U
Sleep, 2
If !GetKeyState("LButton", "P")
break
}
return |
That gets me 640 and probably the upper limit, since shrinking the sleep to 1 or 0 to detect LButton not pushed makes it very unreliable. |
|
| Back to top |
|
 |
Saturn.32 Guest
|
Posted: Fri Aug 22, 2008 4:29 pm Post subject: |
|
|
Well whats happening at one and 1-0, the site gets laggy because it clicks so many times. If you wait a bit, it will show you a number above a thousand.  |
|
| Back to top |
|
 |
SATURN.32 Guest
|
Posted: Fri Aug 22, 2008 4:43 pm Post subject: |
|
|
But why is it only 0-100? If it was 0-200 it would be perfect!!!  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|