Page 1 of 1

autoclicker for joystick key

Posted: 03 May 2024, 18:05
by sc30x
Hello. I need an ahk that will autoclick the RT key on an xbox joystick connected to a PC.
here is a code example, it's good

Code: Select all

#MaxThreadsPerHotkey 3

^z::
Toggle := !Toggle
Loop
{
	If (!Toggle)
		Break
	Click
	Sleep 83 ; Make this number higher for slower clicks, lower for faster.
}
Return

Re: autoclicker for joystick key

Posted: 03 May 2024, 21:52
by boiler
AHK itself cannot send simulated controller button presses, joystick movements, trigger pulls, etc. You would need to use an advanced method of creating a virtual controller, which you can learn about here.