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: 559 17.4%
  • < 2 years

    Votes: 379 11.8%
  • < 3 years

    Votes: 341 10.6%
  • < 4 years

    Votes: 243 7.6%
  • < 5 years

    Votes: 390 12.1%
  • < 10 years

    Votes: 367 11.4%
  • < 15 years

    Votes: 215 6.7%
  • < 20 years

    Votes: 168 5.2%
  • < 25 years

    Votes: 136 4.2%
  • Ok, I am a dinosaur

    Votes: 419 13.0%
Back
Top