- Messages
- 1,564
- Country

I'm attempting to trap events associated with View commands mapped to the keyboard. For example, when NUMPAD 4 is pressed, the outside view looks left and the following trap successfully runs script A:
When NUMPAD 4 is released, the outside view returns to the forward view, and an event logger (using XMLEVENTS Logger) shows that the sim threw VIEW_RESET simultaneously with the numpad release.
I want to be able to trap VIEW_RESET and run script B (in other words, I want to run script B when the numpad is released), but the following does not successfully trap VIEW_RESET:
(L:ViewReset, enum) ++ (>L:ViewReset, enum) was added as an additional check, but it never increments.
Is it possible to trap VIEW_RESET? If so, what is wrong with my construction above?
Thanks in advance.
Bob
XML:
<Keys>
<On Event="VIEW_LEFT">
do script A
</On>
</Keys>
When NUMPAD 4 is released, the outside view returns to the forward view, and an event logger (using XMLEVENTS Logger) shows that the sim threw VIEW_RESET simultaneously with the numpad release.
I want to be able to trap VIEW_RESET and run script B (in other words, I want to run script B when the numpad is released), but the following does not successfully trap VIEW_RESET:
XML:
<Keys>
<On Event="VIEW_LEFT">
do script A
</On>
<On Event="VIEW_RESET">
do script A
(L:ViewReset, enum) ++ (>L:ViewReset, enum)
</On>
</Keys>
(L:ViewReset, enum) ++ (>L:ViewReset, enum) was added as an additional check, but it never increments.
Is it possible to trap VIEW_RESET? If so, what is wrong with my construction above?
Thanks in advance.
Bob

