Using AHK for large scale software development

Post your working scripts, libraries and tools
TheBigO
Posts: 14
Joined: 17 Dec 2020, 09:11

Using AHK for large scale software development

17 Dec 2020, 09:26

Hello,

I am new to this community (really, my first post), and also quite new to AHK as well. To be precise, I've come across AHK three months ago, cause I've been looking for a macro processor to automate some tasks in a virtual racing simulator. As usual, things got complex quite fast, I learned a lot about AHK and the list of ideas for my simulation automation software got really long. In the end, I decided to conduct a complete rewrite using the object oriented capabilites of AHK. I ended up with almost 8000 lines of code, several independent applications integrated with interprocess communication, a rules based build system similar to the good old make, but written competely in AHK, and a very capable plugin mechanism for extending the solution at the users site, since every simulation rig is different.

If you're interested take a look at the GitHub repository and the quite extensive documentation. Feel free to use parts of the code for any of your own projects, if you find something useful.

GitHub: https://github.com/SeriousOldMan/Simulator-Controller
Documentation: https://github.com/SeriousOldMan/Simulator-Controller/wiki

Have fun...

TheBigO
User avatar
iilabs
Posts: 179
Joined: 07 Jun 2020, 16:57

Re: Using AHK for large scale software development

17 Dec 2020, 10:55

That is some fantastic stuff. Will definitely pick your brain when I start building my own. AWESOME!
TheBigO
Posts: 14
Joined: 17 Dec 2020, 09:11

Re: Using AHK for large scale software development

18 Dec 2020, 03:56

Yeah, thanks. It was quite some task. The biggest challenge was the fact, that finding errors in complex code ist not quite easy in AutoHotkey, since

Code: Select all


foo := false

foo.callBar()[42]

evaluates without error. Maybe something to change by a #Warn option in the future...
User avatar
Relayer
Posts: 139
Joined: 30 Sep 2013, 13:09
Location: Delaware, USA

Re: Using AHK for large scale software development

18 Dec 2020, 08:27

Impressive. You must have a strong background in programming. I have written assembly code and some C but I have learned most of what I know from AHK. I'm basically a hack with no formal training. I can learn a lot from looking at your code. I love classes but I can tell from your work that I have a long way to go to fully take advantage of what they can do.

Thanks for sharing.

Relayer
TheBigO
Posts: 14
Joined: 17 Dec 2020, 09:11

Re: Using AHK for large scale software development

23 Dec 2020, 01:51

Version 1.2 is available for download. Lot's of new stuff, including a themes editor for your own simulation worlds, like Rallye, F1, Flight Sim 2020, and so on.
TheBigO
Posts: 14
Joined: 17 Dec 2020, 09:11

Re: Using AHK for large scale software development

29 Dec 2020, 14:07

Version 1.3 is out since a few days. The Button Box visual representation now uses photorealistic graphics and you can interact with it using the mouse.
TheBigO
Posts: 14
Joined: 17 Dec 2020, 09:11

Re: Using AHK for large scale software development

01 Jan 2021, 13:22

Hi, I wish everyone here on the board a happy new year.

And I have a new release out. This time with a very interesting feature also for non-gaming projects, a multibyte, multilanguage translation system for each and every text used (> 400 entries). A graphical user interface that helps to define the translation rules for a new language is there as well.

TheBigO
User avatar
iilabs
Posts: 179
Joined: 07 Jun 2020, 16:57

Re: Using AHK for large scale software development

02 Jan 2021, 14:13

That would be awesome. Really appreciate it!
TheBigO
Posts: 14
Joined: 17 Dec 2020, 09:11

Re: Using AHK for large scale software development

03 Jan 2021, 07:27

iilabs wrote:
02 Jan 2021, 14:13
That would be awesome. Really appreciate it!
It's all there already. You need to extract a few functions from Functions.ahk and isolate the TranslationsEditor classes from "Simulator Configuration.ahk". Nothing very complicated, I think it is doable in about 30 minutes.

Best, Oliver
User avatar
Delta Pythagorean
Posts: 575
Joined: 13 Feb 2017, 13:44
GitHub: DelPyth
Location: Somewhere in the US

Re: Using AHK for large scale software development

03 Jan 2021, 17:27

Give me a few days and I can port an error system that's somewhat similar to python. I use it everyday when creating script sand it works extensively well. Just have to extract it from my own libraries and not have it hard coded lol

- [AHK].......: 1.1.33.02 Unicode 64-bit
- [OS].........: Windows 10.0.19041
- [GITHUB]...: github.com/DeltaPyth
- [PAYPAL]....: paypal.me/DelPyth
- [DISCORD]..: Tophat Cat // Delta#8888

Remember to use [code]CODE[/code] for your multi-line scripts.
Stay safe, stay inside, and remember to wash your hands for 20 seconds!

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 15 guests