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

Online or Offline racing?

  • 100% online racing

    Votes: 105 7.8%
  • 75% online 25% offline

    Votes: 139 10.4%
  • 50% online 50% offline

    Votes: 195 14.5%
  • 25% online 75% offline

    Votes: 380 28.3%
  • 100% offline racing

    Votes: 518 38.6%
  • Something else, explain in comment

    Votes: 5 0.4%
Back
Top