Hi,
I am trying to modify some autopilot switches so that I can increment the values either with the left or right mouse buttons, with the right button providing a 10x increment. I have tried very hard to find a tutorial or resource that explains clearly how to set up more complex mouse areas, but what I end up with does not work as planned...
The example below is for the altitude selector. I want to click left to increase / decrease in 100 ft amounts and the 1000 ft amounts with the right click. (If I could get that much to work, I would also like the wheel working and the middle click to set target altitude to current altitude...). What seems to happen with this code is that both buttons do work, but the result of either click is to change the altitude by 200 ft (ie, two normal increments)! If I add some code for the wheel (another two M:Event sections) then I get the wheel also doing the same but now they all add or remove 400 ft - seems like it just does the normal "AP_ALT_VAR_INC" or "AP_ALT_VAR_DEC" operation as many times as I have mouse buttons coded... What am I doing wrong?
Thanks to anyone who has time to help / explain. My guess is that I've missed something obvious and silly!
Cheers,
Geoff
I am trying to modify some autopilot switches so that I can increment the values either with the left or right mouse buttons, with the right button providing a 10x increment. I have tried very hard to find a tutorial or resource that explains clearly how to set up more complex mouse areas, but what I end up with does not work as planned...
The example below is for the altitude selector. I want to click left to increase / decrease in 100 ft amounts and the 1000 ft amounts with the right click. (If I could get that much to work, I would also like the wheel working and the middle click to set target altitude to current altitude...). What seems to happen with this code is that both buttons do work, but the result of either click is to change the altitude by 200 ft (ie, two normal increments)! If I add some code for the wheel (another two M:Event sections) then I get the wheel also doing the same but now they all add or remove 400 ft - seems like it just does the normal "AP_ALT_VAR_INC" or "AP_ALT_VAR_DEC" operation as many times as I have mouse buttons coded... What am I doing wrong?
Code:
<Mouse>
<Area Left="0" Right="36" Top="0" Bottom="34">
<Area Right="19">
<Cursor Type="DownArrow"/>
<Click Kind="LeftAll+RightAll">(M:Event) 'LeftAll' 100 (>K:AP_ALT_VAR_DEC) (M:Event) 'RightAll' 1000 (>K:AP_ALT_VAR_DEC) </Click>
</Area>
<Area Left="19">
<Cursor Type="DownArrow"/>
<Click Kind="LeftAll+RightAll">(M:Event) 'LeftAll' 100 (>K:AP_ALT_VAR_INC) (M:Event) 'RightAll' 1000 (>K:AP_ALT_VAR_INC) </Click>
</Area>
</Area>
Thanks to anyone who has time to help / explain. My guess is that I've missed something obvious and silly!
Cheers,
Geoff


