The straight forward Send Simconnect Event is fine, however I'm getting very confused by the scripting and I wonder if someone could point me in the right direction please.
I have coded the following for a set Xpndr event and it works perfectly
Code: Select all
Dim frq
frq = HIDMacros.GetBuffer
frq = HIDMacros.StrRPad(frq, "0", 4)
HIDMacros.FSXEvent "XPNDR_SET", "&h"&frq
Code: Select all
Dim frq
frq = HIDMacros.GetBuffer
frq = HIDMacros.StrRPad(frq, "0", 3)
HIDMacros.FSXEvent "VOR1_SET", "&h"&frq
Mant thanks for your help
Peter