Page 1 of 1

Changing keybinds

Posted: 24 Mar 2018, 00:52
by iNRage
i want to change the keybind A (makes a and d spam) to Mouse5

How do i do this?

Code: (Not My Own Credit Goes To: Rohwedder)
Spoiler
This is what i changed it to but it doesnt work.

$Xbutton2:: ;Hotkey XButton2
While, GetKeyState("a","P")
{
Send, {a Down}
Sleep, 1000
Send, {a Up}{d Down}
Sleep, 1000
Send, {d Up}
}
Return
}
Return

Re: Changing keybinds

Posted: 05 Apr 2018, 02:21
by SkyLife
While, GetKeyState("a","P")

While, GetKeyState("Xbutton2","P")