How to write an autoclicker for a right button on a button Topic is solved

Ask gaming related questions (AHK v1.1 and older)
KongKing
Posts: 76
Joined: 22 May 2022, 09:41

How to write an autoclicker for a right button on a button

Post by KongKing » 27 May 2022, 08:58

Hi ! Anyone know how to turn this autoclicker on the button assigned in editbox?


Code: Select all

Gui, Show, w200 h200, Gui
Gui, Add, Edit, gSave vppm , r
return






Save:
Gui, Submit, NoHide
Hotkey, %ppm%, ppm
return





RButton::
While GetKeyState("RButton", "P") {
 Click, right
 SoundBeep, 1500, 20
}
Sleep, 150
SoundBeep, 1000, 20
Return


KongKing
Posts: 76
Joined: 22 May 2022, 09:41

Re: How to write an autoclicker for a right button on a button

Post by KongKing » 27 May 2022, 10:49

what should i change in this script? because it still doesn't work

User avatar
mikeyww
Posts: 26869
Joined: 09 Sep 2014, 18:38

Re: How to write an autoclicker for a right button on a button

Post by mikeyww » 27 May 2022, 11:15

Your goal is not well described at this stage.

KongKing
Posts: 76
Joined: 22 May 2022, 09:41

Re: How to write an autoclicker for a right button on a button

Post by KongKing » 27 May 2022, 11:33

I did what you gave me in this link but it doesn't work for me

User avatar
mikeyww
Posts: 26869
Joined: 09 Sep 2014, 18:38

Re: How to write an autoclicker for a right button on a button

Post by mikeyww » 27 May 2022, 12:14

I don't actually know your goal. My script is a demonstration that may give you ideas. You can use a GUI hotkey control. After you submit your GUI, you can use the Hotkey command to bind your key.

KongKing
Posts: 76
Joined: 22 May 2022, 09:41

Re: How to write an autoclicker for a right button on a button

Post by KongKing » 27 May 2022, 12:16

My point is how to make an autoclicker for the right mouse button

KongKing
Posts: 76
Joined: 22 May 2022, 09:41

Re: How to write an autoclicker for a right button on a button

Post by KongKing » 27 May 2022, 12:18

and so that it can be turned off and on on the selected key

User avatar
mikeyww
Posts: 26869
Joined: 09 Sep 2014, 18:38

Re: How to write an autoclicker for a right button on a button  Topic is solved

Post by mikeyww » 28 May 2022, 10:15

Code: Select all

Gui, Font, s10
Gui, Add, Text    , y10 , Bind:
Gui, Add, Hotkey  , ym    vhk
Gui, Add, Button  , xm    w250 Default, Bind
Gui Show,, Hotkey
Return

ButtonBind:
Try Hotkey, %hk%, Clik, Off
Gui, Submit
Try Hotkey, %hk%, Clik, On
Return

Clik:
on := !on
ToolTip, % on ? "On" : ""
Return

#If on
RButton::
ToolTip, Clicking
While GetKeyState("RButton", "P")
 Click, R
ToolTip, On
Return
#If

Post Reply

Return to “Gaming Help (v1)”