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.
 

Latest News

How long have you been simracing

  • < 1 year

    Votes: 288 15.4%
  • < 2 years

    Votes: 193 10.3%
  • < 3 years

    Votes: 194 10.4%
  • < 4 years

    Votes: 140 7.5%
  • < 5 years

    Votes: 250 13.4%
  • < 10 years

    Votes: 222 11.9%
  • < 15 years

    Votes: 140 7.5%
  • < 20 years

    Votes: 113 6.0%
  • < 25 years

    Votes: 85 4.5%
  • Ok, I am a dinosaur

    Votes: 246 13.1%
Back
Top