Jump to content
Sign in to follow this  
selmer79

KeyFinder - dev-tool idea

Recommended Posts

Hi.

I have been trying to find the DIK codes for my Thrustmaster Warthog HOTAS kit's many (many!) buttons. I had hoped to make a script that throws a "hint" every time you push a button (except ESC), but that's a bit too advanced scripting for me at this time.

However, I did manage to put together this (ugly) thing:

_array = actionKeys "User1";
_count = count _array;
for [{_x = 0},{_x < _count},{_x = _x + 1}] do {
hint format["Element %1 is %2", _x, _array select _x];
sleep 5;
};

The idea is to bind whatever buttons you want to ID to "Use Action 1" and run the script. The problem is that the for-loop does not respect the "sleep 5;" and the hint stays up forever, displaying only the last ID.

Could anyone input and help me make the script work (maybe even in its originally intended manner)?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×