help for an autoclicker script please :( Topic is solved
help for an autoclicker script please :(
Hi, could someone create a script that would allow me to: keep pressing the button on the side of my mouse, it would make me an autoclicker that would stop when I release the button (the number of clicks per second you want). It would be really nice because I've been trying to figure out how to do this for an hour but I just can't do it, Thanks a lot and goodbye.
Re: help for an autoclicker script please :( Topic is solved
Code: Select all
XButton1::
While GetKeyState(A_ThisHotkey, "P")
Send {%A_ThisHotkey%}
Return
Re: help for an autoclicker script please :(
Hello thanks a lot it worked !
It would be really great if you could create a script for my second button on the side of my mouse that would allow me to make a right click autoclicker by staying pressed on it.
Because the one you made allows me to make a left click autoclick but I would also like a right click autoclick with the second button on the side of my mouse, Thank you very much you don't know how much I am grateful to you ( by the way can you tell me how can i change the speed click of the autoclicker) !
It would be really great if you could create a script for my second button on the side of my mouse that would allow me to make a right click autoclicker by staying pressed on it.
Because the one you made allows me to make a left click autoclick but I would also like a right click autoclick with the second button on the side of my mouse, Thank you very much you don't know how much I am grateful to you ( by the way can you tell me how can i change the speed click of the autoclicker) !
Re: help for an autoclicker script please :(
Code: Select all
XButton1::autoClick("X1", 50) ; Click XButton1 at 50 clicks per second (cps)
XButton2::autoClick("R") ; Button can be L, R, M, X1, or X2
autoClick(button, cps := 100) { ; Default cps = 100
SetMouseDelay, 1000 / cps ; Delay (ms) after each click
While GetKeyState(A_ThisHotkey, "P") ; While the key is held,
Click, %button% ; ... click the specified button
}
Re: help for an autoclicker script please :(
hey sorry for disturbing you but i don't get it, i can't change the cps, im very new in this "autohotkey" programm so can you be more precise ?
should i write all what you sent from yesterday or only this ? (
should i write all what you sent from yesterday or only this ? (
Re: help for an autoclicker script please :(
Here is an example with 10 clicks per second. You can try it in Notepad.
I cannot control how your game may respond to this. Tips for games helps some people with their gaming issues.
https://autohotkey.com/board/topic/111737-how-to-make-ahk-work-in-most-games-the-basics/
An alternative to the SetMouseDelay is a Sleep that follows each click.
Code: Select all
XButton2::autoClick("R", 10) ; XButton2 clicks the right button at 10 clicks per second
autoClick(button, cps := 100) { ; Default cps = 100
SetMouseDelay, 1000 / cps ; Delay (ms) after each click
While GetKeyState(A_ThisHotkey, "P") ; While the key is held,
Click, %button% ; ... click the specified button
}
https://autohotkey.com/board/topic/111737-how-to-make-ahk-work-in-most-games-the-basics/
An alternative to the SetMouseDelay is a Sleep that follows each click.
Re: help for an autoclicker script please :(
oh i got it its maybe because of my mouse software, nevermind you helped me a lot thank you
Re: help for an autoclicker script please :(
omg i finally got it im so happy, thank you very much i love you ( btw it was for minecraft) thanksssss !!! <3
Re: help for an autoclicker script please :(
hi again,
im trying to change it to 18-19 cps but i can't can you help me ?
im trying to change it to 18-19 cps but i can't can you help me ?
Re: help for an autoclicker script please :(
Change 10 to 18.
Re: help for an autoclicker script please :(
I tried this but i get only 7-8 cps :
[Mod edit: [code][/code] tags added.]
Code: Select all
XButton2::autoClick("L", 18)
autoClick(button, cps := 100) {
SetMouseDelay, 1000 / cps
While GetKeyState(A_ThisHotkey, "P")
Click, %button%
}
Re: help for an autoclicker script please :(
If you are using Windows 8 or 10 you can try this:
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=89335
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=89335
Re: help for an autoclicker script please :(
And how can I change the cps in this script ?
Re: help for an autoclicker script please :(
To change the click speed you press the "Click Speed" button and then adjust the min and max to the values you want. So if you wanted to click 18 times per second you can set both Min and Max to a value of 18 (if you hold shift while you adjust a slider it moves both at the same time.)
It uses the Left and Right mouse buttons to start clicking but they can be changed to other keys.
For left click go to these two lines and change the key to the hotkey you want to hold to click.
;***********************
Line 552
Code: Select all
While(GetKeyState("LButton","P")){
;Change to
While(GetKeyState("XButton2","P")){
Code: Select all
~$LButton::
;change to
~$XButton2::
Re: help for an autoclicker script please :(
My earlier script has some inherent limitations in how Click is executed. In addition, the cps is only an estimate and is not accurate. If you raise the number quite a bit, you might get up to 30 cps or so. You could try Hellbent's method to see if that is more effective.
Re: help for an autoclicker script please :(
@mikeyww
Your approach was quite clever, the only problem with using SetMouseDelay is that if you are moving your cursor around and you are only doing a few clicks per second you can end up dragging things rather than just doing a simple click. Never the less, I'll def keep that one in mind in the future.
Because my clicker is designed to use low click speeds and because ahk sleep times aren't very reliable I use a short sleep time and then check if the right amount of time has passed and any difference gets knocked off the next click. Over all, my testing has shown it to give near perfect results (averaging over a few clicks).
Your approach was quite clever, the only problem with using SetMouseDelay is that if you are moving your cursor around and you are only doing a few clicks per second you can end up dragging things rather than just doing a simple click. Never the less, I'll def keep that one in mind in the future.
Because my clicker is designed to use low click speeds and because ahk sleep times aren't very reliable I use a short sleep time and then check if the right amount of time has passed and any difference gets knocked off the next click. Over all, my testing has shown it to give near perfect results (averaging over a few clicks).
Re: help for an autoclicker script please :(
Thank you, Hellbent. That is a good point about the mouse delay; a Sleep would be less troublesome for that script instead of the mouse delay. Regardless, it sounds like your script is much more accurate anyway.
Re: help for an autoclicker script please :(
@Mouaz
looks like you deleted your last post.
I'll post my reply in the case anyone else has the same problem you were. (in regards to changing the click toggle hotkey)
What I was trying to inform you to do is replace this code found at line 552
with this code
and then at line 585 replace this code:
With this code:
Just in case you don't understand how the clicker works, here is how you use it.
*After you replace that code.
1: Run the script and press the "Hotkeys" button.
2: Select "Left" at the top and then where it says "ctrl + F1" you can change the activation hotkey. (click in that box and change it to a key you want). That hotkey is what turns the clicker on and off (All that it does is turns on and off your XButton2 hotkey so you can start clicking).
3: Press Update and then at the main screen press the "Click Speed" button and set the cps you want.
4. Press the hotkey you set in step 2 (ctrl + F1 by default). Press and hold XButton2 to start clicking.
5. Press the hotkey again to turn it off.
6. Do 4 and 5 as many times as you want.
You can tell if it is active by looking at the animation. If the animation is off, the clicker is on.
looks like you deleted your last post.
I'll post my reply in the case anyone else has the same problem you were. (in regards to changing the click toggle hotkey)
What I was trying to inform you to do is replace this code found at line 552
Code: Select all
While(GetKeyState("LButton","P")){
Code: Select all
While(GetKeyState("XButton2","P")){
Code: Select all
~$LButton::
Code: Select all
~$XButton2::
Just in case you don't understand how the clicker works, here is how you use it.
*After you replace that code.
1: Run the script and press the "Hotkeys" button.
2: Select "Left" at the top and then where it says "ctrl + F1" you can change the activation hotkey. (click in that box and change it to a key you want). That hotkey is what turns the clicker on and off (All that it does is turns on and off your XButton2 hotkey so you can start clicking).
3: Press Update and then at the main screen press the "Click Speed" button and set the cps you want.
4. Press the hotkey you set in step 2 (ctrl + F1 by default). Press and hold XButton2 to start clicking.
5. Press the hotkey again to turn it off.
6. Do 4 and 5 as many times as you want.
You can tell if it is active by looking at the animation. If the animation is off, the clicker is on.
Re: help for an autoclicker script please :(
hi pls help me out i need a autoclicker script so when i hold my right mouse button it starts clciking 20 cps and when i release it stops clicking pls i want it to work in minecraft
Re: help for an autoclicker script please :(
Who is online
Users browsing this forum: No registered users and 41 guests