Hotkeys
Hey, i have a program with hotkeys, pretty basic global hotkeys(As in they work whether your application is focused or not, but i'd like to make it so the users can change their hotkeys to anything, or a ComboBox with a list of ones. Anyone know the simplest way of doing this while keeping them global, Thnx.
EDIT: i use GetAsyncKeyState, is there anywayi can use a textbox to define the keys, and i declared user32 as Short not as Integer, due to Windows7 Compatibility, but i tried
key = GetAsyncKeyState(CShort(TextBox5.Text))
That didn't work.
First of all, you need to use a keyboard hook.
If you need the source I'd be glad to PM it to you.
Second of all you can get the Key-Pressed when you click the textbox from the keyboard hook.
So when the click event is raised you enable the keyboard hook and it will return into that text box
That way it will return the raw code. (You can also make Show names or a Fixed name for them by using if statements.)