Jump to content

Recommended Posts

Posted
I used AutoHotKey for the TrackIR stuff. That way I can still use the TM Warthog/DCS A-10C plug&play and I don't need to redo all that in TARGET.The AutoHotKey script is small and has no performance hit when using it.

 

:pilotfly:

 

I need to take another look at that, I remember thinking it looked kind of complex , it would be nice to be able to do something like this though.

Thanks for sharing all the info on this!

Don B

EVGA Z390 Dark MB | i9 9900k CPU @ 5.1 GHz | Gigabyte 4090 OC | 64 GB Corsair Vengeance 3200 MHz CL16 | Corsair H150i Pro Cooler |Virpil CM3 Stick w/ Alpha Prime Grip 200mm ext| Virpil CM3 Throttle | VPC Rotor TCS Base w/ Alpha-L Grip| Point Control V2|Varjo Aero|

Posted (edited)
I need to take another look at that, I remember thinking it looked kind of complex , it would be nice to be able to do something like this though.

Thanks for sharing all the info on this!

 

Since I first posted it I have made it a little simpler. I had some problems getting the keys I chose to register in TrackIR software. Somtimes the Dx button # would be used instead of my chosen key (I'm using keys above F12 so there will never be any conflicts with DCS default key assignments).

 

So, now I simply edit the .xml file in TrackIR and that works 100% of the time to change the key assignment. It looks complex because I tried to write concise instructions on how to do this. The AutoHotkey script is commented (anything after a ";" is not part of the code & is usually a comment) so you will know what the code does at every step, makes it easier to modify if you want something slightly different.

 

I made a .bat file that starts TrackIR, starts the Short-Long TrackIR AutoHotKey script, starts another AHK script that runs VAC w/proper profile & turns it ON, then starts DCS World. I then added the DCS World icon to the .bat file so it looks just like the DCS World .exe icon. Everything loads with one click of the icon! :D

 

Only other thing to do is to exit the AutoHotKey script(s) in the system tray after exiting DCS World.

 

P.S. I didn't know about TrackIR software not being able to see controller numbers. Because I used AutoHotKey this is not a problem because it does use Controller numbers in the script. Because of that you do need to be sure that your controller# matches the controller# programmed into the AHK script. This is no big problem, a little program called JoyIDs lets you see all connected controllers & their #'s. It also lets you easily change the controller # of any connected controller. You usually only need to set this up once.

 

 

 

:pilotfly:

Edited by CubPilot

[sIGPIC][/sIGPIC]

Win7 Pro 64 | Asus Rampage III Extreme |Swiftech H2O cooled: CPU, Video, N. Bridge | i7 980X EE @4.5GHz | 16 GB DDR3 @1726 MHZ | AMD R9 290X 4GB DDR5 +EK H2O block+Backplate | BenQ XL2730Z 2560x1440 @144Hz | Samsung 850 EVO SSD 500GB | 2 - Samsung HD 1TB | Pinoeer BD-RW | ASUS Xonar DX 7.1 PCIe Audio | CoolerMaster Haf-X case | PC Power & Cooling Silencer 760W PS | HOTAS Cougar w/Evenstrain Mod | HOTAS Warthog | TM RCS Rudders + Mods | TM MFD's w/monitors | TrackIR5

Posted

I too use AutoHotKey to enable my HOTAS to control Trackir pause and centre functions.

I compiled it into an .exe file that I run before starting DCS World and trackir. Its easy to change buttons and time duration to hold/press the button.

 

Here is the script i use:

 

; A script to enable the Left Throttle Button on my Warthog Throttle Assembly to control the

; pause and centre options in Trackir.

; Momentarily press the Left Throttle Button to CENTRE Trackir.

; Press the same button for 0.2 seconds or more and then release it to PAUSE the Trackir/Cockpit view.

 

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.

SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

Process, Priority, , High

 

1Joy15:: ; y Joy x , y= controller ID number in windows (can change ID number using JoyIDs, x= joystick button number

 

KeyWait, 1Joy15 ; button 15 is my left throttle button

 

If (A_TimeSinceThisHotkey > 05 and A_TimeSinceThisHotkey < 200 ) ; 10=0.005 seconds and 200=0.2 second

send {o} ; Centre Trackir- I set the key "o" to Centre Trackir in Trackir control software itself.

 

If (A_TimeSinceThisHotkey > 200)

send {p} ; Pause TrackIR and Cockpit View - I set the key "p" to Pause Trackir in Trackir control software itself.

 

return

;

 

 

 

Regards,

Milli

Posted

Thanks for the detailed info CubPilot, much appreciated!

Don B

EVGA Z390 Dark MB | i9 9900k CPU @ 5.1 GHz | Gigabyte 4090 OC | 64 GB Corsair Vengeance 3200 MHz CL16 | Corsair H150i Pro Cooler |Virpil CM3 Stick w/ Alpha Prime Grip 200mm ext| Virpil CM3 Throttle | VPC Rotor TCS Base w/ Alpha-L Grip| Point Control V2|Varjo Aero|

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...