Hi there! I was scripting something for a friend of mine, he has some difficulties playing couse his movility is severily reduced and I'm doing this script for him so he can use as much inputs as he can while gaming. he can press the following buttons:
joystick up, joystick right, right mouse button, left mouse button, move the mouse anywhere and he uses a button on his neck to get an extra key.
Using AutoHotKey I did something like using his neck button like "shift" so every other input is another one, this way he can access to 4 more inputs just sacrificing the neck button input, but I would like to know if there is a way to use the same key (right mouse button in this case) to get 2 different keys, like 1 click is {space} (jump) and holding 1 second it is Q (radial menu) even if this means to jump each time he is going to use the radial menu
Thank you so much for your help!
The same key for diferent uses holding
Re: The same key for diferent uses holding
Code: Select all
key := {F3: ["{Space}", "q"], F4: ["x", "y"]}
RButton::
KeyWait, RButton, T.4
set := ErrorLevel + 1
SoundBeep, 1200 + 200 * set
Return
#If set
F3::
F4::
Send % key[A_ThisHotkey][set]
set := 0
SoundBeep, 1000
Return
#If
Who is online
Users browsing this forum: No registered users and 60 guests