How to obtain the name of car and pass it to my script (SimHub).

I'm using SimHub for my shakers. I know this program can obtain information from the game. I suppose the name of the car you are driving is one of those pieces of information. Now, how can I write that information to a file or pass it to my AutoHotkey script? My idea is to make a list of all the cars and make 2 groups (with roof and without roof). With that information my script would force the fan mode automatically (which I currently select manually from my button box) , to either car fan or to wind simulator. If there's any other way, such as reading a temporal file with information created by the game when the track loads (I have no idea if this happens), it would be a solution too.
 
I have found the solution with a text search tool (searching for the name of car in files while AC is loaded). I have found that the name of the car appears here:

C:\Users\******\Documents\Assetto Corsa\cfg\race.ini

So, problem solved. Now, time to program my script.
 
Back
Top