Helping my disabled sister play a game

Ask gaming related questions (AHK v1.1 and older)
beachxbunny
Posts: 10
Joined: 01 Nov 2019, 12:03

Helping my disabled sister play a game

Post by beachxbunny » 18 Aug 2022, 12:08

Hey guys, I am trying to help my sister play a game that requires you to press the left mouse key rapidly...the problem is that she is disabled and cannot press on the button fast enough. I recently came across this program and found a code that left clicks rapidly if the button is held down, but it is TOO FAST ...i would like a pause between clicks like: fast clicks for 2 seconds than pause for 1 second then fast clicks again 2 seconds than pause 1 second etc.

This is the code i am currently using, is it possible to update it to reflect the pause?

Code: Select all

enabled:= false

~$LButton::
	if( enabled ){
		KeyWait LButton, T0.0
		If ErrorLevel
			While GetKeyState("LButton", "P"){
				Click
				Sleep 25
			}
	}
return

8:: enabled := !enabled

beachxbunny
Posts: 10
Joined: 01 Nov 2019, 12:03

Re: Helping my disabled sister play a game

Post by beachxbunny » 18 Aug 2022, 12:23

Oops i forgot to add that when i wrote "pause" i mean "disable" the left button for 1 second and then resuming again...all while holding down left key without letting go

Post Reply

Return to “Gaming Help (v1)”