Actually, this one is easier.
;Filename is "IL2_vJoy.ahk"
; Create an object from vJoy Interface Class.
vJoyInterface := new CvJoyInterface()
; Was vJoy installed and the DLL Loaded?
; Show log of what happened
Msgbox % vJoyInterface.LoadLibraryLog
myStick := vJoyInterface.Devices[A_Args]
AHK, vJoy and the vJoy library by evilC are required - see AutoHotKey site.
BarRaiders Advanced Launcher is also required - see Stream Deck application.
Run the single script file from BarRaiders Advanced Launcher and use arguments "[vJoy device #] [button #]" in the field required, eg "1 2" would denote vJoy device 1 and button 2. A space is required between both of the arguments.
The example bellow shows arguments for virtual device 2 and button 128.
If anyone wants a third argument to control button press duration, first the line with "sleep 50" needs to be changed to "sleep A_Args" and then add the third argument as the amount of time to pause (in milliseconds) between 0 and 2147483647 (24 days) in the arguments field...don't use max value!