I've found this amazing _IsPressed function (3rd party) and in order to use it you need to give it parameters (string) in virtual key code of the keyboard button you want to check if it is pressed.
I am using this function as a replacement for HotKeySet, and I want user to be able to change the button which will trigger some random function (I want to change the hotkey in other words) and therefore user will be able to type the name of the button he wants to set as a hotkey in an input box, and what he has typed in (string) will be stored in a variable. As _IsPressed only accepts virtual key codes I need to convert this string to a virtual key code string.
Is there a simple way to do it or I will need to create a big array? Has anyone created a script that will do that?
I am using this function as a replacement for HotKeySet, and I want user to be able to change the button which will trigger some random function (I want to change the hotkey in other words) and therefore user will be able to type the name of the button he wants to set as a hotkey in an input box, and what he has typed in (string) will be stored in a variable. As _IsPressed only accepts virtual key codes I need to convert this string to a virtual key code string.
Is there a simple way to do it or I will need to create a big array? Has anyone created a script that will do that?