Page 1 of 1

Please help

Posted: 20 Sep 2020, 12:21
by geps
I want to combine this two codes but i can't.My goal is make a autoclicker when you hold the button and when you release it stops.
I have this two codes

Code: Select all

LButton::
;Actions to do when LButton is pressed
return

LButton up::
;Actions to do when LButton is released
return

Code: Select all

loop
{
click
sleep 35
}

Re: Please help

Posted: 20 Sep 2020, 16:57
by Yakshongas
Use this code:

Code: Select all

;SetMouseDelay, -1, -1

$LButton::
While, GetKeyState("LButton", "P")
{
    Click
}
Return
Also, if you want to make it crazy fast remove the semicolon from the first line and you will get this result in your clicking speed.
NewCanvas1.png
NewCanvas1.png (77.59 KiB) Viewed 666 times

Re: Please help

Posted: 21 Sep 2020, 06:43
by geps
how do i make it slower

Re: Please help

Posted: 21 Sep 2020, 06:53
by geps
@Yakshongas like 15-16 cps i need

Re: Please help

Posted: 21 Sep 2020, 07:51
by Yakshongas
Like this the CPS is around 16.33

Code: Select all

SetMouseDelay, 30

$LButton::
While, GetKeyState("LButton", "P")
{
    Click
}
Return

Re: Please help

Posted: 21 Sep 2020, 14:15
by geps
how i make it right click

Re: Please help

Posted: 21 Sep 2020, 19:05
by Yakshongas
Change the sixth line with Click, Right

Re: Please help

Posted: 22 Sep 2020, 01:50
by geps
how do i make it work with
Lbutton
Lbutton&ctrl
Lbutton&shift
like i need to do it when i sprint too
and i want to make it some delayed like when i hold the button it will do the command like 3 secs later

Re: Please help

Posted: 22 Sep 2020, 10:36
by Yakshongas

Code: Select all

Lbutton::
LButton & LControl::
LButton & LShift::
    Sleep, 3000
    While, GetKeyState("LButton", "P")
    {
        Click
    }
Return

Re: Please help

Posted: 25 Sep 2020, 15:31
by geps
when i use this code i cant use my normal left click

Re: Please help

Posted: 28 Sep 2020, 12:26
by firetofire123
I recommend if you are going to ask him for help, you should ask nicer. Also I'll look at the code why you can't left click.