Change frequency auto click Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Andretti
Posts: 6
Joined: 19 Jul 2017, 13:53

Change frequency auto click

Post by Andretti » 19 Jul 2017, 14:33

Apparently some games can ban you if they detect inhuman inputs (such as 600 clicks/key strokes per second). I want to change the frequency at which autohotkey clicks to something reasonable such as 5 or 10. Along with the obvious thing I need to edit to further change the frequency.

I am using this script for autofire. It also uses "q" to toggle suspend on it.

Code: Select all

q::

Suspend

return
$LButton::
Loop
{
  if not GetKeyState("LButton", "P")
	break
  Click
}
return
I am also using this script to auto spam "e". Lower frequency on this as well. Notice how it is also using "q" to toggle suspend. PROBLEM. "q" will only toggle suspend on the last script started. I can use a different hotkey but I would really like to toggle suspend on all scripts with just one key.

Code: Select all

q::

Suspend

return

$e::
  While GetKeyState("e","P")
    Send, {e}
Return
None of the "But this is so easy it has been talked about so many times here "link". Please search before posting." Yeah about that. If it is so easy for you, please don't be an elitist **** spending 30 seconds to write a hate comment but spend 30 seconds to fix the script. I keep googling help for autohotkey and most of the time I just see people asking for help and elitist ***** linking a page with code that doesn't even work (maybe because I don't know how to use it). Such as this https://autohotkey.com/docs/commands/Suspend.htm . I couldn't get that suspend code to work in my script. The one in the script I just posted worked for me. And finally, I have absolutely no idea how to make autohotkey scrips. I just combine bits of code I find and make minor changes.

Rohwedder
Posts: 7895
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Change frequency auto click  Topic is solved

Post by Rohwedder » 20 Jul 2017, 02:04

Hallo,
1. Use one script, not two!

Code: Select all

q::Suspend
$LButton::
	While GetKeyState("LButton", "P")
		Click
Return
$e::
	While GetKeyState("e", "P")
		Send, {e}
Return
2. Learn AutoHotkey!

Andretti
Posts: 6
Joined: 19 Jul 2017, 13:53

Re: Change frequency auto click

Post by Andretti » 20 Jul 2017, 11:42

Rohwedder wrote:Hallo,
1. Use one script, not two!

Code: Select all

q::Suspend
$LButton::
	While GetKeyState("LButton", "P")
		Click
Return
$e::
	While GetKeyState("e", "P")
		Send, {e}
Return
2. Learn AutoHotkey!
Thank you. Now it works with only one hotkey to toggle. Are there any solutions for changing the frequency at which it auto clicks and auto presses keys?

Rohwedder
Posts: 7895
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Change frequency auto click

Post by Rohwedder » 20 Jul 2017, 12:28

Hallo,
change the two Sleep https://autohotkey.com/docs/commands/Sleep.htm

Code: Select all

q::Suspend
$LButton::
	While GetKeyState("LButton", "P")
	{
		Click
		Sleep, 100
	}
Return
$e::
	While GetKeyState("e", "P")
	{
		Send, {e}
		Sleep, 100
	}
Return

Post Reply

Return to “Gaming Help (v1)”