Hi Tom,
I'm using XMLTools_v201 in FSX-Accel, and I have a question on XMLEVENTS (v1.1)
Using this code:
The first 2 parts (using XMLKEYS) does exactly what I would expect: so intercepts the keystrokes and (conditionally) executes the PANEL_ID_TOGGLE event.
However, the 3rd part (using XMLEVENTS) puzzles me ...
1. When I write either 0 or 1 to C:XMLEVENTS:CaptureEvents , makes no difference. The Event is allways captured.
2. Unlike with a keystroke with XMLKEYS, an event with XMLEVENTS is still seen and executed upon by FSX.
(meaning the event FLAPS_DOWN is not "intercepted" but just "monitored" and increments the L:Test10 var).
I remember we discussed that in the past, but I forgot the conclusion …..
So what I expected it to do: when trapped, the event is NOT executed by FSX. Just the defined code.
Can you shed some light ??
Best regards, Rob
I'm using XMLTools_v201 in FSX-Accel, and I have a question on XMLEVENTS (v1.1)
Using this code:
XML:
<Update Frequency="1"/>
<Element>
<Select>
<Value>
'b' (>C:XMLKEYS:KeyName,string)
'10061 (>K:PANEL_ID_TOGGLE)' (>C:XMLKEYS:KeyString,string)
(L:TrapsEnabled,bool)
if{ (>C:XMLKEYS:KeyCaptureOn,bool) }
els{ (>C:XMLKEYS:KeyCaptureOff,bool) }
(L:TrapsEnabled,bool)
if{
'a' (>C:XMLKEYS:KeyName,string)
'10060 (>K:PANEL_ID_TOGGLE)' (>C:XMLKEYS:KeyString,string)
(>C:XMLKEYS:KeyCaptureOn,bool)
}
'FLAPS_DOWN' (>C:XMLEVENTS:EventName,string)
'(L:Test10,number) ++ (>L:Test10,number)' (>C:XMLEVENTS:EventString,string)
1 (>C:XMLEVENTS:CaptureEvents,bool)
</Value>
</Select>
</Element>
However, the 3rd part (using XMLEVENTS) puzzles me ...
1. When I write either 0 or 1 to C:XMLEVENTS:CaptureEvents , makes no difference. The Event is allways captured.
2. Unlike with a keystroke with XMLKEYS, an event with XMLEVENTS is still seen and executed upon by FSX.
(meaning the event FLAPS_DOWN is not "intercepted" but just "monitored" and increments the L:Test10 var).
I remember we discussed that in the past, but I forgot the conclusion …..
So what I expected it to do: when trapped, the event is NOT executed by FSX. Just the defined code.
Can you shed some light ??
Best regards, Rob

