Auto/Rapid Clicker
-
- Posts: 8
- Joined: 20 Apr 2021, 19:57
Auto/Rapid Clicker
I haven't learned how to script yet and was looking for a script to auto click on a game like Roblox while the window is in the background can anyone help me out?
- Attachments
-
- REE.png (25.25 KiB) Viewed 1205 times
Re: Auto/Rapid Clicker
Try ControlSend. Examples are at the bottom of the page. See WinTitle, too. Finally, if you search the forum for Roblox, you may find additional helpful examples. Post any of your scripts if you need feedback about them.
-
- Posts: 8
- Joined: 20 Apr 2021, 19:57
Re: Auto/Rapid Clicker
@mikeyww
b::
SetKeyDelay, 2
if WinExist("Roblox")
WinActivate, ahk_exe RobloxPlayerBeta.exe
ControlClick, x680 y371, Rolox,,,, Pos
Return
did i do that right?
b::
SetKeyDelay, 2
if WinExist("Roblox")
WinActivate, ahk_exe RobloxPlayerBeta.exe
ControlClick, x680 y371, Rolox,,,, Pos
Return
did i do that right?
Last edited by LovingRoMc on 21 Apr 2021, 11:02, edited 1 time in total.
Re: Auto/Rapid Clicker
It if worked, then it's right!
Some possibilities are below.
Some possibilities are below.
Code: Select all
ControlSend,, Z, ahk_exe RobloxPlayerBeta.exe
Code: Select all
ControlClick, x680 y371, ahk_exe RobloxPlayerBeta.exe
-
- Posts: 8
- Joined: 20 Apr 2021, 19:57
Re: Auto/Rapid Clicker
It's not working on my end but I think the code is right.
Just to be sure:
^s::
SetKeyDelay, 2
if WinExist("Roblox")
WinActivate, ahk_exe RobloxPlayerBeta.exe
ControlClick, x680 y371, ahk_exe RobloxPlayerBeta.exe
Return
Also how do I add like a keybind to disable it?
Just to be sure:
^s::
SetKeyDelay, 2
if WinExist("Roblox")
WinActivate, ahk_exe RobloxPlayerBeta.exe
ControlClick, x680 y371, ahk_exe RobloxPlayerBeta.exe
Return
Also how do I add like a keybind to disable it?
Re: Auto/Rapid Clicker
Coordinates are relative to the target window's top left corner. The command might not work in all windows.
If you plan to activate the window, then you can use MouseClick or Click instead of ControlClick with coordinates. It might improve reliability.
If you plan to activate the window, then you can use MouseClick or Click instead of ControlClick with coordinates. It might improve reliability.
Code: Select all
F3::
on := !on
SoundBeep, 1000 + 500 * on
Return
#If WinExist("ahk_exe RobloxPlayerBeta.exe") && on
b::
WinActivate
MouseClick,, 680, 371
Return
#If
-
- Posts: 8
- Joined: 20 Apr 2021, 19:57
Re: Auto/Rapid Clicker
Ok so I don't want to activate the window so I'll remove that but I have this
^s::
on := !on
SoundBeep, 1000 + 500 * on
Return
#If WinExsist("ahk_exe RobloxPlayerBeta.exe")
F3::
ControlClick,, 680, 371, ahk_exe RobloxPlayerBeta.exe
Return
#If
^s::
on := !on
SoundBeep, 1000 + 500 * on
Return
#If WinExsist("ahk_exe RobloxPlayerBeta.exe")
F3::
ControlClick,, 680, 371, ahk_exe RobloxPlayerBeta.exe
Return
#If
Last edited by LovingRoMc on 21 Apr 2021, 11:21, edited 1 time in total.
Re: Auto/Rapid Clicker
Could try:
Code: Select all
wTitle = ahk_exe RobloxPlayerBeta.exe
^s::
on := !on
SoundBeep, 1000 + 500 * on
Return
#If on
F3::ControlClick, X680 Y371, %wTitle%
#If
-
- Posts: 8
- Joined: 20 Apr 2021, 19:57
Re: Auto/Rapid Clicker
The F3 part doesn't seem to be working
Re: Auto/Rapid Clicker
Test in Notepad (changing wTitle) or another program. This command specifically acts upon controls within the window. As noted, some windows might not respond. Test with the target window active. Issue a MouseMove to the coordinates of interest. You can also specify a particular control instead. If you run Window Spy, it will show you the controls' names.
-
- Posts: 8
- Joined: 20 Apr 2021, 19:57
Re: Auto/Rapid Clicker
Still didn't work
Re: Auto/Rapid Clicker
Post your revised script. What happened when you ran it in Notepad? What was desired instead?
-
- Posts: 8
- Joined: 20 Apr 2021, 19:57
Re: Auto/Rapid Clicker
Nothing happened
[Mod edit: [code][/code] tags added.]
Code: Select all
wTitle = ahk_exe notepad.exe
^s::
on := !on
SoundBeep, 1000 + 500 * on
Return
#If on
F3::ControlClick, X680 Y371, %wTitle%
#If
-
- Posts: 8
- Joined: 20 Apr 2021, 19:57
Re: Auto/Rapid Clicker
Imma just not worry about it rn
Re: Auto/Rapid Clicker
I cannot guarantee that it will work in your game. I suggest looking at other Roblox examples on the forum. The tips for games may also help. https://autohotkey.com/board/topic/111737-how-to-make-ahk-work-in-most-games-the-basics/
Who is online
Users browsing this forum: No registered users and 102 guests