π .AHK CapsLock Toggle BunnyHop
So what I have here, is a poor BunnyHop AutoHotKey script.
Basically, you start the script and CapsLock will be a toggle for BunnyHopping/Jumping.
Everyone knows that AHK is terrible, but this one was looking promising since it had a toggle, feel free to change the code and leave it in the comments, any improvement is good, Especially with AHK... Anyways, test it out, modify and improve this...
Basically, you start the script and CapsLock will be a toggle for BunnyHopping/Jumping.
Everyone knows that AHK is terrible, but this one was looking promising since it had a toggle, feel free to change the code and leave it in the comments, any improvement is good, Especially with AHK... Anyways, test it out, modify and improve this...
Code:
!w::Reload ; Just in case of problem, hit Shift+W to reset the script
;toggle with CapsLock
*~$Space::
{
GetKeyState, state, CapsLock, T
If state = D
SetTimer, *~$Space, 1
Send, {Blind}{Space}
}
loop
{ GetKeyState, state, CapsLock, T
If state = U ; The key has been released, so break out of the loop.
Return
}
Return
