I am doing something like joystick and i want each movement in it to be like pressing a certain key on a keyboard as when i move it up it is like pressing 'u' key to the computer
Asked
Active
Viewed 90 times
-2
-
Did you try to search? [click](https://msdn.microsoft.com/en-us/library/ms171548(v=vs.110).aspx), [click](http://stackoverflow.com/q/1645815/1997232) – Sinatr Nov 18 '15 at 12:13
1 Answers
0
You could use Autohotkey for this task.
AutoHotkey (AHK) is a free, open-source macro-creation and automation software for Windows that allows users to automate repetitive tasks. It is driven by a scripting language that was initially aimed at providing keyboard shortcuts, otherwise known as hotkeys, that over time evolved into a full-fledged scripting language.
It's very easy to achieve your goal with it.
- Use Joystick test script to determine the Joystick key number N
Create an .ahk file with following code and execute it (N replaced by the number from step 1)
JoyN::u
That's it.
Keyremapping in AHK

Schneyer
- 1,197
- 1
- 9
- 27