|the RegisterHotKey() 4th argument can't be combined. so the GetAsyncKeystate() can do it ;)|
I.... I guess....
Are you trying to have a wacky key combo like Ctrl+Q+Z or something? Key modifiers like Ctrl/Alt/etc are really the only ones you'd need to combine normally -- and those can be combined with hotkeys.
Yes... since you are doing Ctrl+Alt+A+S, you would not be able to use a hotkey for that. You are right.
|(good for games and otherthings)... to be honest is what i want: combination free ;)|
The problem with this is that keyboards are not built to handle this. Even if you write your program to handle this... most user's keyboards can only report so many keys down at a time. After that, the keyboard starts "missing" key reports and it will appear as though the user isn't pressing the key when they really are.
Key combos like A+S+Q are not guaranteed to work. And in fact... they frequently break. For this reason. Keyboard designers are under the assumption that keys are going to be pressed one at a time (with a few exceptions). Maybe they'll allow 2 or 3 keys at once.... and it might depend on where they are physically on the keyboard. But in general you should not rely on this.
Exceptions are made for special keys like Ctrl/Alt/Shift, as those are designed to be pressed in conjunction with other keys.
So yeah... even if you do this with GetAsyncKeystate... it might not work depending on the keyboard the user has. It's better to stick with conventional key combos.
|note: how can i give you 'points'? you help me very... thanks for all |
You can't. There's no rating system on this board.
I'm happy to help. Your thanks is enough reward for me. =)