avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • January 21, 2018, 06:58 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - CodeTRUCKER [ switch to compact view ]

Pages: [1] 2 3 4 5 6 ... 43next
The good news is your flight simulator mathematics will be fast, and c++ would be the language of choice for doing hardcore simulations where mathematical calculations need to be done as quickly as possible.
The bad news is you've made your job a lot harder, and you've already bitten off more than almost anyone can chew.
I agree this is a tough road and I am over my head, but C++ is the tool my mentor wants to use to program the DLLs/apps to use with the Microsoft Flight Simulator X.  With his help and a template he has helped me code a function which holds a floatplane/seaplane/amphibian locked in one position next to a dock (docking) and pivoting like when a floatplane/seaplane/amphibian is anchored offshore.  He did most of the coding for locking to a location, but left me to take a crack at coding locking the heading as well and it worked!  There is A LOT I don't know, but at least I have had a successful start.  FWIW - I won't be coding any 3D graphics, so at least it will be a little less complicated.  We'll see?  In the meantime, I have not done any coding on my text-based flightsim.  I have only been planning, per your encouragement.  Based on that rough sketch I will probably not have any kind of real prototype until next summer, but I should have a simple, linear, basic alpha before the end of the year.  Here's hoping!  :)

Thanks for the links Wraith!  They look pretty good.  :Thmbsup:

UPDATE:  Turns out another project I need to do requires C++, so a pointing I will go. 
The good news is a 24-year-old C++ guru wants to re-mentor this old COBOL/CICS dinosaur. :)
Now all I have to do is find some ancillary coding tutorial.  Did I mention he wants to mentor, not babysit?   ;D  FYI - my IDE is VS2015 Pro.

Just be prepared for a struggle whenever you start to learn a new language.
Roger that.  Thanks.

I think the only strong recommendation I would make is to use an OOP language.
Python fills this bill, does it not?  Ha!  Funny thing is I have always wanted a project that would be a good one for Python. :)

Hey Mouser!

Long time no talk to! I thought I got lost or something because I tried to login two or three times and was "blocked."  I almost didn't try tonight.  I'm glad I did. :) 

I think no matter what it will be an interesting and challenging project. 
Thanks for the input.  One of the best things about this project is I can focus on my strengths of over 2000 hours of simulated flying in all kinds of aircraft and several hours in a number of real aircraft large and small.

As for the best programming language -- one of the other nice things about doing text-based coding is that you can use almost any programming language.. speed won't be an issue and neither will library support, etc.
I was hoping someone would say this.

So I would fall back on my default language suggestion these days to use Python
Thanks.  Python never crossed my mind, although I played with it some years ago.

But mainly I would suggest you do most of your coding virtually in the form of planning before you ever start coding.
When I was coding COBOL, DB2, and (my favorite) CICS back in the '90s it was normal to spend weeks/months in planning and prototype before committing hours to coding.  Today, a programmer can get instant results and debug.  Back then we condsidered getting our printouts (there were no screen views) in under four hours as something short of a miracle.  But, that was a good thing as we really thought through the whole process and not just take a guess and see how it worked out.  LOL


Been awhile since I have been in the coding environment.  Due to my vision getting worse I am interested in taking my hobby of flight simulation from the GUI to the Command Line.

The program will involve physics, time and an internal 3D "space."  Essentially, the screen would present a list of information, the "pilot" would make a selection then process the choices and present the new information back on the screen.  While this would probably not serve inexperienced sim flyers, it would be usable for experienced pilots both real and simulated.  With the addition of text-to-speech and speech-to-text, I can see someone who knows aviation might enjoy "flying" while driving over a long distance.  I know I would.  Obviously, this might allow sight-challenged people to enjoy some aspects of flight simulation.

Frankly, this is going to be lots of work to start with and will only become more involved as more realism, features and (hopefully) interactive Air Traffic Control.  This is why I would be very appreciative of any comments for the coding language.  Questions are most welcome.


@MilesAhead - Thanks for that heads-up.  It looks like a good resource, but I probably need to learn AHK better so I can ask intelligent questions.

They have no problem helping newbs to the language.  About the only things that annoy the regulars there are things like saying "it doesn't work" without telling what happens when it doesn't work or "I get errors" without specifying the errors, or refusal to post a test case that shows the problem.

Everyone has a bit of trouble with AHK syntax when starting out since it mixes old and new syntax styles.

But in any case it's up to you.  :)

Thanks for that.  I'll keep your words in mind. 

@MilesAhead - Thanks for that heads-up.  It looks like a good resource, but I probably need to learn AHK better so I can ask intelligent questions.

@wraith808 - I appreciate your work on our efforts.  Fortunately, I have a usable workaround with the Desktop Coral/Notezilla/AHK combo, so we can take some time.  Frankly, I have a bit of a gimpy noodle and am somewhat overwhelmed trying to keep the AHK code straight in my mind.  Overload!  I will report back after awhile, hopefully with a solution. 


It looks like it's the active window for that one declaration.  You can use the window title or text to get it also.

Thanks.  I'll work with it and see what I can make happen.  I will report back once I have something figured out.

Unfortunately, that code will only give the class of the active window which can only be a folder or the Desktop.  I will be researching how to read the class of desired "active" window instead.

@MilesAhead - I might be able to use the existing script if I can make it Always-On-Top.  How can I do that?

Just uploaded a new version of TextOverlayTool that might solve your problem.  Again, it depends on whether your application is Full Screen, or Full Screen Windowed.  If it's full screen, it would require a lot of low level coding and display via the mechanism it is using to draw, i.e. OpenGL or DirectX.  If it's fullscreen windowed, this should work.

Not working yet, but is the ahk_class, "TextOverlayToolView" or something else?  The "TextOverlayToolView" as ahk_class does not work.

Just uploaded a new version of TextOverlayTool that might solve your problem.  Again, it depends on whether your application is Full Screen, or Full Screen Windowed.  If it's full screen, it would require a lot of low level coding and display via the mechanism it is using to draw, i.e. OpenGL or DirectX.  If it's fullscreen windowed, this should work.

I mentioned above I cannot use Full Screen.  I can only use windowed mode, so you're safe there.  I'll give it a test and report back.  Thanks.

FloatingWords has been my goto StickyNote thing. but it's definitely more intrusive than you want.
This is a great idea and may solve my problem of needing a constant reminder of Keys and Commands while playing a game. Thanks!

wyrwolf, you may want to take a look at this... Run two instances of desktop coral?.

DesktopCoral / Re: Usefullness
« on: September 15, 2015, 08:05 PM »
i knew there was a reason i couldn't find it in the dictionary...
yes it should be Corral.
I thought you'd named it Coral because it formed a barrier like a coral reef. Who knew?

Coral is also a beautiful and stable entity which lives under the surface.   :D

Good call, April!

So, was that the issue?

I haven't been able to test extensively, but the testing I have done has not deleted my checklist/note yet.  Besides, it makes sense.  I have been hitting the "X" thinking it was a "Close" button like you surmised.  I am glad you pointed me to it.  Also, with your explanation I have been able to identify the "random" behavior.  What was happening has been my random choice to open Notezilla (and therefore the checklist note) versus letting the automation handle it.  I have been unwittingly deleting the checklist.  The good news is Notezilla does not have this "bug."  I thought my report was strange given the stability and popularity of the app.

Obviously, I haven't read the manual yet, but will do so as I need to discover the yet unknown capabilities.  My apologies to Conceptworld and y'all for the inconvenience of a "false positive."

Good call, April!

FYI - Notezilla just opened and no longer had my checklist.  It deleted it again.  :(
Maybe I am doing something wrong to trigger this behavior, but I don't know what it would be. 
I will work with the Conceptworld support from this point forward.

@Gautam - Email sent.

Is your flight simulator running in windowed full screen?  If it's not, I'm not sure that I'll be able to get on top of that... you might look at borderless gaming to see if you can get it windowed with the same effect that you want.


I have a couple of games that can go fullscreen rather than windowed full screen.  I'll check with that.

Enter a new wrinkle...
I cannot get my flightsim to go fullscreen.  It just continues to flash on and off.  I thought it might have been in a tug-of-war with Desktop Coral since it would take up all screen real estate, but it flashes even when Desktop Coral is not running.  This is squarely in my court as I wouldn't expect y'all to troubleshoot my flightsim installation nor my PC.  Unfortunately, this means I cannot run my flightsim in fullscreen.  I have to run it in either a max or normal window.  The good news is Desktop Coral and my flightsim (in windowed mode) do play nicely together which allows TextOverlayTool to reside at bottom of my screen under the flightsim window just like Notezilla did when it was working. 

However, I have not been able to get the AHK script to trap the DOWNARROW with...
...ahk_class TextOverlayToolView
that was stated previously or what WindowSpy defined...
...ahk_class HwndWrapper[TextOverlayTool.exe;;18b747ee-4167-4956-a02a-3c39195647fb]

Could there be a different class definition?

Hello @CodeTrucker, please do email us at if you encountered any issues with Notezilla. We will be happy to help you.

Gautam Jain

Hello Gautam,

Thank you for the offer.  I will be in contact soon once I can establish a more controlled environment on my PC.  I have had a number of programs running alongside Notezilla.

TextFileOverlay has been updated.  The same link from above should work to get it, or

I tested it with your text file, and it worked fine.

Let me know if there are any other problems!

Hi wraith808,

It works well with Desktop Corral, but without it the "Always on Top" is not working AFAICT.  At least it will not remain on top of the flight simulator window.

If you want to add some things to your app you could add these features...
  • The ability to change font color (or tell me where I can find the setting).
  • The ability to change the font size.  I use 12, 14 and 16 in my other programs I use.
  • The ability to hide the titlebar
  • Perhaps move the settings/options menu to a right-click.
  • Add more transparency levels.

That's my wishlist so far, but feel free to include/exclude whatever you like.


FYI - It looks like I may have spoke too soon... Notezilla has taken to deleting my checklist in random fashion.  Everything was working until this evening when I went to open the checklist it was gone!  This happened before.  Perhaps it has something to do with the other programs, but I can't keep recreating the checklist.  Seems like it would keep the file intact, but it didn't.  It just deleted it.  Not sure where to go at this point?  Sad, really.  It was working so perfect.  I will probably try again and see what may be the culprit.

Remove attachthumb from your post.  It's trying to attach it as an image, and failing.
Done.  See above.

Can you send me the text file?  It does not do that for me - I did test that.
Here is the file I used...

Thanks to all you fine people I have enjoyed a day of flying by the checklist.  Checklists are handy for making sure one doesn't set down on a runway with the landing gear still in the belly of the airplane.  I'm not mentioning any names, but I am personally aware of a sim pilot doing an unintentional "belly" landing more than once when attempting to fly without following a checklist.   ;) 

@wraith808 - I will have to spend more time working with the OverlayTool.  One thing which will need to be looked at is it opens text files with all carriage returns removed resulting in one large block of text.

@MilesAhead - I have only been able to make the AHK script work with Notepad and Notezilla, so far.  I am not sure whether the script is compiled or not.  All I have figured out is to reload the script once I get everything.  Regardless, your script works well trapping the trigger key.  I have programmed a button on my flight stick to send "DOWNARROW" keystroke which effectually moves the checklist down one line per my request.  Thank you.

@App103 - Thanks for the nod toward Notezilla for my present need.  I will look forward to learning more as time goes on.

@mouser - Thanks for creating the "Desktop Coral."  It works quite intuitively which is a good thing.

@TaoPhoenix - Thanks for the perspective.  I suspected it would take something deeper.  Fortunately, AHK filled that requirement.

dr_andus - Thanks for the heads-up on "Desktop Coral."  Unfortunately, I haven't been able to get a handle on Samurize.  Maybe I will if I read up on it on the site when I get a chance.  In the meantime, be prepared for a salvo of questions.   :D

Here is a summary of how I have been using the various parts to provide a very usable solution so far...
  • "Desktop Coral" - mouser's creation did allow a place at the bottom of my screen real estate where I was able to place the Notezilla window.  I really liked "Desktop Coral's" ability to let me handle other things, like editing another text file, email and Firefox without getting in the way.
  • "Notezilla" - Using app103's suggestion had the capability of being border-less, reduced vertically to display only one line at a time, setting the background transparent or black and setting the font to red or green, depending if it was a day or night flight.  It performed quite gracefully.

Thanks again to everyone.  Your efforts have allowed me to add a very important utility to my flight simulation experience.  I will pass this on to all my fellow simpilots.  I could not have done it without you. 

One last note to pass on... 

When I first came to I was fairly stout and healthy man of 50-ish.  I was also actively taking flight lessons to get my real-world pilot's license.  Since that time my health has almost reduced me to an invalid which has so far prevented me from returning to my OTR truck and achieving my pilot credentials, but I live in hope.  Thanks to the wonder of consumer flight simulation technology and my family's generosity in constructing and furnishing me with a "simpit," I am able to participate in almost-flying, or as far as one can with a simulator.  So, you can see why your contributions to getting me one step closer to a "Suspension of Disbelief" (the Holy Grail of flight simulation) has added to the quality of my life. 

Thank you.

Pages: [1] 2 3 4 5 6 ... 43next