Page 1 of 1

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

Posted: 27 May 2022, 08:58
by KongKing
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

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

Posted: 27 May 2022, 09:15
by mikeyww

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

Posted: 27 May 2022, 10:49
by KongKing
what should i change in this script? because it still doesn't work

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

Posted: 27 May 2022, 11:15
by mikeyww
Your goal is not well described at this stage.

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

Posted: 27 May 2022, 11:33
by KongKing
I did what you gave me in this link but it doesn't work for me

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

Posted: 27 May 2022, 12:14
by mikeyww
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.

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

Posted: 27 May 2022, 12:16
by KongKing
My point is how to make an autoclicker for the right mouse button

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

Posted: 27 May 2022, 12:18
by KongKing
and so that it can be turned off and on on the selected key

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

Posted: 28 May 2022, 10:15
by mikeyww

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