avatar image

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

Login with username, password and session length
  • September 19, 2019, 03:50 PM
  • Proudly celebrating 13 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
I am toying around with giving the old Microsoft Train Simulator (MSTS) new life by manipulating some functions with an AutoHotKey script. Does anyone know of a list of these MSTS vars and where I can find it?



I read the above post(s) several hours ago and was reminded of a half-decade history of like responses to previous inquiries I have made here in "Cody's House," but was so overwhelmed with such incredible generosity of collegiate level material I was unable to pen any congruent thoughts and am struggling with getting this missive into text. I suspect it will be some days before I can get my wits aligned with the needed understanding. I just wanted to acknowledge your offerings and say thank you.

Take care,

PS - I am aware I have a number of other projects I started with the studious assistance here. I have had to overcome some health interruptions. Life goes on and takes us in ways we cannot anticipate. I can't promise I will be able to bring the varied initiatives to fruition in any near term, but I do intend to keep trying.


Thank you for such a comprehensive response. I don't pretend to understand it all at first blush, but I will study, try it and report back if I have any specific questions or (hopefully) to report success. I sometimes have seasons where simple coding is almost incomprehensible and my gimpy noodle has been acting up lately. LOL

Thanks again,

General Software Discussion / Best Advice for New Python Programmers
« on: January 23, 2019, 01:41 AM »

Like the subject says, I am beginning to learn Python. I tried some years ago but got pretty sick and now that I seem to be doing much better I want to try again. I used to be a pretty good COBOL/DB2?CICS and VB4 programmer (read: dinosaur), so I can kind of grasp most of what's going on, but I've forgotten a bunch (probably more than I could relearn). Anyway, if anyone has any specific advice about Python or programming, in general, please share it with me. I know I have to get my own "bloody nose," but I don't want to reinvent the wheel if I can help it.

FYI - I am searching the Internet and other forums for tips, tricks and cautions too, but I like DC. I always have. :)

Thanks for reading,

No that is not the latest lousy cryptogram. It is kind of a description of what I am looking for.

Here's the deal... I have amassed a huge number (1+TBs) of archive files (zip, rar, 7z, etc.) which I expanded into folders, but failed to properly delete the temporary folders of the same names. Each time I upgraded my offline storage and computers I always said to myself I'd clean up the mess later. Well, I didn't and it's some years since 1996. Yeah, I know a bunch of them won't even work these days, but that is beside the point.

Can anyone direct me to a special duplicate file/folder finder which will ignore the extension? One which will find the folder name which matches the archive name? Once I can make sure I have the archive file then I can delete the expanded folder. I'm anticipating it will reduce my volume by 60-80 percent (best guess) which will also greatly reduce my disk maintenance and defrag time.

Any ideas?

Thanks for reading. :)


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 [email protected] 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.

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