A little help for a newbie please!
Posted: 17 Jan 2014, 17:33
This is a great program, just what I have been looking for.
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
However, the following code to set VOR1 doesn't work at all and I have absolutly no idea why!
What am I doing wrong and how can I resolve the problem?
Mant thanks for your help
Peter
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