I would like to share the following video, which shows the AutoHotkey script I have written for using my cockpit, including different automations and checks. Maybe you can get some ideas from it. I run it before I launch Assetto Corsa. Actually I run Assetto Corsa (Content Manager) with another script, which defines the functions of my button box and does a lot of other things which I could explain in another thread.
As you can see, the script checks the presence of all the USB devices connected in my cockpit. If none of them (or any in particular) is not detected or any unwanted device is found, an error message is displayed. It not only detects gaming devices, but also other devices such as the fans controllers, the mouse, the VR headset and the motion platform. For this the script calls USBDeview, a tool that can work with commands and that lets you identify all the USB devices with unique references. Joyids is also run in the background to be sure the gaming devices are set in the right order.
The script also perform a sound test of the different shakers on my cockpit (again just to be sure the hardware the connections are fine) and then launches all the necessary programs (SimuCUBE, SimDash, SimHub, Simtools...), most of them hidden or minimized. One of these programs is XOutput, a simulator of a virtual Xbox 360 pad, whic I use to be able to run the virtual desktop from the Oculus client without grabbing the Oculus controllers.
When I finish my driving, I run the script again, in which case it closes all the programs and leaves everything as before, for instance, setting the audio playback to my speakers (using Nircmd for this).
I have also included an icon which opens a help document with a series of steps for the correct use of my cockpit. I try to always follow these steps in the right order. That makes things easier. For instance, put on your gloves before the VR headset, never seat on your bucket if you have not put the harness outside of the seat, or always remember to put the headset on the cockpit tray before seating and fastening your harness. Obviously, I know all this by heart now, but my cousins do not
01 - PLACE THE HARNESS OUTSIDE OF THE SEAT
02 - PUT ON THE BOOTS (OPTIONAL)
03 - PLUG THE POWER CABLE INTO THE COCKPIT CONNECTOR (REAR RIGHT)
04 - PLUG THE USB CABLE AND THE 2 AUDIO CABLES INTO THE COCKPIT CONNECTORS (RIGHT)
05 - RUN THE COCKPIT SCRIPT (DESKTOP) AND WAIT FOR IT TO FINISH
06 - CLEAN THE HEADSET LENSES (IF NECESSARY)
07 - PLACE THE HEADSET ON THE COCKPIT TRAY
08 - SIT IN THE BUCKET SEAT
09 - FASTEN THE HARNESS
10 - PUT ON THE GLOVES
11 - PUT ON THE HEADSET WITHOUT TIGHTENING
12 - PUT ON THE HEADPHONES AND PLUG THEM INTO THE HEADSET
13 - TIGHTEN THE HEADSET
14 - PRESS THE RED BUTTON, LOOK AT THE MONITOR ICON (OCULUS TRAY) AND PRESS IT AGAIN
15 - RUN THE ASSETTO CORSA SCRIPT (DESKTOP)
16 - CHOOSE CAR, TRACK AND MODE
17 - PRESS THE RED BUTTON TO START
Sorry for the quality of the video, but I have no idea how to record my screen to a video file.
As you can see, the script checks the presence of all the USB devices connected in my cockpit. If none of them (or any in particular) is not detected or any unwanted device is found, an error message is displayed. It not only detects gaming devices, but also other devices such as the fans controllers, the mouse, the VR headset and the motion platform. For this the script calls USBDeview, a tool that can work with commands and that lets you identify all the USB devices with unique references. Joyids is also run in the background to be sure the gaming devices are set in the right order.
The script also perform a sound test of the different shakers on my cockpit (again just to be sure the hardware the connections are fine) and then launches all the necessary programs (SimuCUBE, SimDash, SimHub, Simtools...), most of them hidden or minimized. One of these programs is XOutput, a simulator of a virtual Xbox 360 pad, whic I use to be able to run the virtual desktop from the Oculus client without grabbing the Oculus controllers.
When I finish my driving, I run the script again, in which case it closes all the programs and leaves everything as before, for instance, setting the audio playback to my speakers (using Nircmd for this).
I have also included an icon which opens a help document with a series of steps for the correct use of my cockpit. I try to always follow these steps in the right order. That makes things easier. For instance, put on your gloves before the VR headset, never seat on your bucket if you have not put the harness outside of the seat, or always remember to put the headset on the cockpit tray before seating and fastening your harness. Obviously, I know all this by heart now, but my cousins do not
01 - PLACE THE HARNESS OUTSIDE OF THE SEAT
02 - PUT ON THE BOOTS (OPTIONAL)
03 - PLUG THE POWER CABLE INTO THE COCKPIT CONNECTOR (REAR RIGHT)
04 - PLUG THE USB CABLE AND THE 2 AUDIO CABLES INTO THE COCKPIT CONNECTORS (RIGHT)
05 - RUN THE COCKPIT SCRIPT (DESKTOP) AND WAIT FOR IT TO FINISH
06 - CLEAN THE HEADSET LENSES (IF NECESSARY)
07 - PLACE THE HEADSET ON THE COCKPIT TRAY
08 - SIT IN THE BUCKET SEAT
09 - FASTEN THE HARNESS
10 - PUT ON THE GLOVES
11 - PUT ON THE HEADSET WITHOUT TIGHTENING
12 - PUT ON THE HEADPHONES AND PLUG THEM INTO THE HEADSET
13 - TIGHTEN THE HEADSET
14 - PRESS THE RED BUTTON, LOOK AT THE MONITOR ICON (OCULUS TRAY) AND PRESS IT AGAIN
15 - RUN THE ASSETTO CORSA SCRIPT (DESKTOP)
16 - CHOOSE CAR, TRACK AND MODE
17 - PRESS THE RED BUTTON TO START
Sorry for the quality of the video, but I have no idea how to record my screen to a video file.
Last edited: