December 16, 200916 yr Dear Guru,I'm building a Keyboard (ICP) and a Data Entry Display (DED) for the FS9 F-16MLU and since yesterday i'm bold because of frustration, and therefore need some help. I've tried a lot but can't solve the problem.The problem:The ICP has two functions: 1. entering freqs and 2. access DED main-pages and sub-pagesThe DED contains 12 main-pages which i access via the keyboard as follows:<Click>4(>L:ICP-MODE, enum) if 4 (>L:ICP-LIST,enum) els 4 (>G:Var1)</Click)So, if i push the 4 digit, it produces a 4 as part of the freq to be entered. If i push the list button and afterwards the 4 at the ICP, the DED displays the right page. So far, so good.To enter the LIST-MISC pages (contains 9 sub-pages) i need to push the following buttons: first ICP-MODE 4 to display the LIST page, then the 0 (zero) digit to display the LIST-MISC page then i have to push again a digit on the ICP (0-9) to display the associated sub-page.The code to display the LIST-MISC page is:4(>L:ICP-MODE, enum) 12 (>L:ICP-LIST,enum) and then i have to push a 0-9 digit to display the associated page of the ICP-LIST-MISC index-pageIs it possible to do this in the code as mentioned above? and how would it look like?I've tried the following code but it keeps on displaying page 4 of the ICP-LIST page and not page 4 of the ICP-LIST-MISC page:<Click>4(>L:ICP-MODE, enum)4(>L:ICP-MODE, enum) 12(>L:ICP-LIST,enum) 5 (>L:ICP-LIST,enum)4 (>L:ICP-LIST-MISC,enum)andororels 4 (>G:Var1)I really hope you can help me get my hair back!Greetings Slammer
December 20, 200916 yr Commercial Member I've read your post like four times and cant make sense of what you want to do, I would suggest clarifying your post/intentions. :( :( Engjell BerishaGood Day! Good Day, Engjell Berisha
December 20, 200916 yr Author Engjell,I want to display the main pages and sub-pages of the DATA ENTRY DISPLAY (DED) via the keyboard (ICP) and still be able to use the keyboard to enter frequencies and other data.I'am able to display the main pages and use the keyboard to enter frequencies and data, with the following code:<!-- ********* 5 Digit **********--> <Area Left="86" Right="116" Top="105" Bottom="125"><Cursor Type="Hand"/><Click>4(>L:ICP-MODE, enum) if 6 (>L:ICP-LIST,enum) els @Increase(5)</Click></Area>Clarification of this code:the first part displays page 6 of the ICP-LIST page when i first push the ICP-LIST button followed by the number 5 digit on the keyboardthe second part "els @Increase(5)":If i only push the number 5 digit of the keyboard it will produce a 5 as part of the frequency or dataset.Now i also want to access the sub-pages via the keyboardTo display page 5 of the sub-pages i have to use the following code:4(>L:ICP-MODE, enum) 12(>L:ICP-LIST,enum) if 5 (>LICP-LIST-MISC,enum)The question is:Is it possible to put these two codes into one line?Regards Ed
December 20, 200916 yr Moderator Without even considering the rest, this one line has many syntax errors! 4(>L:ICP-MODE, enum) if 6 (>L:ICP-LIST,enum) els @Increase(5) Correcting all syntax/formatting errors, it should read: 4 (>L:ICP-MODE, enum) if{ 6 (>L:ICP-LIST,enum) } els{ @Increase(5) } To make it easier to read and understand, consider the use of indenting and separate lines: <Click> 4 (>L:ICP-MODE, enum) if{ 6 (>L:ICP-LIST,enum) } els{ @Increase(5) }</Click> From a standpoint of logic, the above is completely meaningless...The statement 4 (>L:ICP-MODE, enum) assigns the value of 4 to the variable (L:ICP-MODE,enum).In the context of an if{ } els{ } operation, that is incorrect. The first statement in such a case must be what you EXPECT the variable to be when the evaluation is done......in which case (L:ICP-MODE,enum) 4 == would make more sense... :( This is precisely why no one can really help sort out your question. The "script" is so full of inconsistencies and syntax errors that no one can interpret enough to follow your intended chain of logic. :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
December 20, 200916 yr Author Bill,Thank you and Engjell very much for your reaction. I can understand that you gurus are horrified by the looks of my XML syntax. I've already past that state and run into frustration. You've seen that i am a newbie at XML programming, which is true and therefore XML programming for me is mostly based on trial and error and cost me short nights which brought me to this code and for some reason i don't know works. Most of the time one knows the problem by head but clarifying it to someone else often seems to be a problem, which is obvious in this case.I've copied your code into the keyboard XML and the following occurs:- pressing the 5 digit on the keyboard displays the LIST page (it should produce a 5 as part of the frequency or other data)- pressing the LIST button and afterwards the 5 digit on the keyboard produces a 5 but the DED still displays the LIST page (it should display page 6 of the LIST page).This is how the ICP-LIST page looks like this: LIST1: DEST 2: BINGO 3: VIP E: INTG4: NAV 5: MAN 6: INS R: DLNK7: EWS 8: MODE 9: VRP 0: MISCTo display page 5 of the LIST-page (which is page 4 of the ICP-MODE) i use: <!-- ********* 5 Digit **********--> <Area Left="86" Right="116" Top="105" Bottom="125"><Cursor Type="Hand"/><Click>4(>L:ICP-MODE, enum) if 6 (>L:ICP-LIST,enum) els @Increase(5)</Click></Area>To display the LIST-MISC page i first press the LIST button "4(>L:ICP-MODE, enum)" and then the 0 (zero) digit "12 (>L:ICP-LIST,enum)" on the keyboard which then will display the LIST-MISC page and is done by the following code:<!-- ********* 0 Digit **********--><Area Left="168" Right="198" Top="151" Bottom="171"><Cursor Type="Hand"/><Click> 4(>L:ICP-MODE, enum) if 12 (>L:ICP-LIST,enum) els @Increase(0)</Click></Area>This is how the LIST-MISC page looks like this: LIST-MISC1:CORR 2:MAGV 3:OFP4:INSM 5:LASR 6:GPS7:DRNG 8:BULL 9:CCIPNow i'm in the LIST-MISC page and want to display the BULL page (which is digit 9) so i have to push button 9.How can i achieve this in one line of code?
Create an account or sign in to comment