May 31, 201016 yr Moderator Good grief, but this 3d XML script for GPS control is a stone-cold PITA!After finally managing to get it working (sort of), now I find that some of the key_events are either screwed up, or simply don't work at all...For example, here's what should be pretty straight forward: <PartInfo> <Name>GPS2_PageKnob</Name> <MouseRect> <Cursor>Hand</Cursor> <TooltipText>Page Knob</TooltipText> <MouseFlags>LeftSingle+RightSingle+Wheel</MouseFlags> <CallbackCode> (M:Event) 'LeftSingle' scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_DEC) } (M:Event) 'RightSingle' scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_INC) } (M:Event) 'WheelUp' scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_INC) } (M:Event) 'WheelDown' scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_DEC) } </CallbackCode> </MouseRect> </PartInfo> Should work, right? Nope! the pages will increase with no problem, but the DECREASE simply doesn't work! :( Okay, how about the Flight Plan? This you would expect to display the Flight Plan page, right? <PartInfo> <Name>GPS2_FPL_BUTTON</Name> <MouseRect> <Cursor>Hand</Cursor> <TooltipText>Flight Plan</TooltipText> <CallbackCode>(>K:G1000_MFD_FLIGHTPLAN_BUTTON)</CallbackCode> </MouseRect> </PartInfo> Oh no! It turns on the TERRAIN color display!These are completely broken. They do nothing at all:G1000_MFD_MSG_BUTTONG1000_MFD_OBS_BUTTON Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
June 2, 201016 yr Bill,Try putting the right mouse click check above the left mouse click:(M:Event) 'RightSingle' scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_INC) }(M:Event) 'LeftSingle' scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_DEC) }I once had a problem where the one of the mouse clicks wouldn't work and I found the solution was to place the right click above the left click. I can't say for certain that this actually fixed the problem (maybe I had something else messed up in the syntax) but when your desperate you'll try anything.I'd also try isolating the page_knob_dec key just to see if it really is broken. ie remove all lines except the leftsingle.
June 6, 201015 yr Good grief, but this 3d XML script for GPS control is a stone-cold PITA!After finally managing to get it working (sort of), now I find that some of the key_events are either screwed up, or simply don't work at all...Should work, right? Nope! the pages will increase with no problem, but the DECREASE simply doesn't work! :(This is my standard code that works.. <Click Kind="WheelUp+WheelDown+LeftSingle+Leave"> (M:Event) 'WheelUp' scmp 0 == if{ ..... } (M:Event) 'WheelDown' scmp 0 == if{ ......} (M:Event) 'LeftSingle' scmp 0 == if{ ......} (M:Event) 'Leave' scmp 0 == if{ ....... } </Click> Edit: Looks like you've got it working.. from your other note :( Bert
June 7, 201015 yr Author Moderator Thanks Bert.Actually, these <KEY> commands are simply DEAD in FSX...G1000_MFD_PAGE_KNOB_DECG1000_PFD_PAGE_KNOB_DECGPS_PAGE_KNOB_DECLikewise all variations of these <KEY> commands:G1000_MFD_MSG_BUTTONG1000_MFD_OBS_BUTTONNone of them will work even when they are the ONLY command being sent... :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment