Sign in to follow this  
nickpike

Gauge for typing out text

Recommended Posts

Hi guys, the following gauge works OK. As you type on the keyboard, the alphanumerics show in the gauge. The idea of this is to produce a gauge where you can type in notes, messages, etc. Trouble is, seems very longwinded, especially if I want to store messages/ notes using several lines.Can anyone think of a way of simplifying this.BTW, intial kudos and street cred goes to AB for the basic idea of how this should work.cheers,nick%( (L:char8,number) chr (L:char7,number) chr scat (L:char6,number) chr scat (L:char5,number) chr scat (L:char4,number) chr scat (L:char3,number) chr scat (L:char2,number) chr scat (L:char1,number) chr scat ) %!s! (L:char6,number) (>L:char7,number) (L:char5,number) (>L:char6,number) (L:char4,number) (>L:char5,number) (L:char3,number) (>L:char4,number) (L:char2,number) (>L:char3,number) (L:char1,number) (>L:char2,number) (M:Key) (>L:char1,number) Typing0 (>L:char1,enum) 0 (>L:char2,enum) 0 (>L:char3,enum) 0 (>L:char4,enum) 0 (>L:char5,enum) 0 (>L:char6,enum) 0 (>L:char7,enum)©2006 Nick Pike

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

GREATTTT Tip Nick, really great!!! Thanks a lot for sharing your gauge programming knologe with us!

Share this post


Link to post
Share on other sites

Hi,What do you want Nick?You can make multilines with nand adding as many chars as you want.To protect the sim keys you can add in the Keys sectiona visible tag.tested this one:%((L:char10,number) chr (L:char9,number) chr scat (L:char8,number) chr scat (L:char7,number) chr scat (L:char6,number) chr scat (L:char5,number) chr scat (L:char4,number) chr scat (L:char3,number) chr scat (L:char2,number) chr scat (L:char1,number) chr scat )%!s!n%((L:char20,number) chr (L:char19,number) chr scat (L:char18,number) chr scat (L:char17,number) chr scat (L:char16,number) chr scat (L:char15,number) chr scat (L:char14,number) chr scat (L:char13,number) chr scat (L:char12,number) chr scat (L:char11,number) chr scat )%!s!(L:text on,bool)(L:char19,number) (>L:char20,number) (L:char18,number) (>L:char19,number) (L:char17,number) (>L:char18,number) (L:char16,number) (>L:char17,number) (L:char15,number) (>L:char16,number) (L:char14,number) (>L:char15,number) (L:char13,number) (>L:char14,number) (L:char12,number) (>L:char13,number) (L:char11,number) (>L:char12,number) (L:char10,number) (>L:char11,number) (L:char9,number) (>L:char10,number) (L:char8,number) (>L:char9,number) (L:char7,number) (>L:char8,number) (L:char6,number) (>L:char7,number) (L:char5,number) (>L:char6,number) (L:char4,number) (>L:char5,number) (L:char3,number) (>L:char4,number) (L:char2,number) (>L:char3,number) (L:char1,number) (>L:char2,number) (M:Key) (>L:char1,number) Typing(L:text on,bool) ! (>L:text on,bool)0 (>L:char1,enum) 0 (>L:char2,enum) 0 (>L:char3,enum) 0 (>L:char4,enum) 0 (>L:char5,enum) 0 (>L:char6,enum) 0 (>L:char7,enum)0 (>L:char8,enum) 0 (>L:char9,enum) 0 (>L:char10,enum) 0 (>L:char11,enum) 0 (>L:char12,enum) 0 (>L:char13,enum) 0 (>L:char14,enum) 0 (>L:char15,enum) 0 (>L:char16,enum) 0 (>L:char17,enum) 0 (>L:char18,enum) 0 (>L:char19,enum) 0 (>L:char20,enum) (place more chars in the section)Saving the text.....impossible????Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Thank you Jan, you have saved me from thinking too hard how to do lines :-) My question was basically this. There seems to be a lot of code to achieve this, and in particular, each number/letter requires an L:Variable. I was wondering if a simpler method was possible.cheers,nick

Share this post


Link to post
Share on other sites

Hi Jan, actually this does not work. The text types out in the wrong order and places when going to a new line. I'm having a problem sorting out the correct layout.cheers,nick

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this