- Messages
- 3
Hi all,
I'm trying to use the SimConnect_RequestReservedKey function to assign and catch more that one key, like this (it's a slightly modified sample from documentation):
hr := SimConnect_MapClientEventToSimEvent(hSimConnect, Ord(EventKey_1));
hr := SimConnect_RequestReservedKey(hSimConnect, Ord(EventKey_1), 'q', 'w', 'e');
hr := SimConnect_MapClientEventToSimEvent(hSimConnect, Ord(EventKey_2));
hr := SimConnect_RequestReservedKey(hSimConnect, Ord(EventKey_2), 'z', 'x', 'c');
The first pair of calls works ok and gives TAB+Q, but the second pair throws SIMCONNECT_EXCEPTION_ERROR
What's wrong with this sample? Can I use more than one reserved key or not?
Thanks in advance
I'm trying to use the SimConnect_RequestReservedKey function to assign and catch more that one key, like this (it's a slightly modified sample from documentation):
hr := SimConnect_MapClientEventToSimEvent(hSimConnect, Ord(EventKey_1));
hr := SimConnect_RequestReservedKey(hSimConnect, Ord(EventKey_1), 'q', 'w', 'e');
hr := SimConnect_MapClientEventToSimEvent(hSimConnect, Ord(EventKey_2));
hr := SimConnect_RequestReservedKey(hSimConnect, Ord(EventKey_2), 'z', 'x', 'c');
The first pair of calls works ok and gives TAB+Q, but the second pair throws SIMCONNECT_EXCEPTION_ERROR
What's wrong with this sample? Can I use more than one reserved key or not?
Thanks in advance
