Hi Peter,
Yes, read and write. Here is an example from Hidmacro page.
HIDmacros brings several functions to read and write variables through FSUIPC. To use those functions FSUIPC of course must be installed.
view plaincopy to clipboardprint?
HIDMacros.GetFSUIPCInt offset, size
HIDMacros.GetFSUIPCFloat offset, size
HIDMacros.GetFSUIPCString offset, size
HIDMacros.GetFSUIPCRaw offset, size
HIDMacros.SetFSUIPCInt offset, size, value
HIDMacros.SetFSUIPCFloat offset, size, value
HIDMacros.GetFSUIPCInt offset, sizeHIDMacros.GetFSUIPCFloat offset, sizeHIDMacros.GetFSUIPCString offset, sizeHIDMacros.GetFSUIPCRaw offset, sizeHIDMacros.SetFSUIPCInt offset, size, valueHIDMacros.SetFSUIPCFloat offset, size, value Parameters are:
offsetvariable's memory offset from FSUIPC SDK.sizesize of variable in bytes, also mentioned in SDKvaluevalue to be setoffsetvariable's memory offset from FSUIPC SDK.OFFSET variable's memory offset from FSUIPC SDK
SIZE size of variable in bytes, also mentioned in SDK
VALUE value to be set
Size parameter tells how many bytes will be read or written. For int functions (GetFSUIPCInt and SetFSUIPCInt) this can be between 1 and 8. For float functions only size 4 and 8 bytes is supported (float or double float). Function GetFSUIPCRaw read part of memory and return string representing memory dump. It means every byte is represented by 2 characters in hex format, for example byte 44 would be returned as 2C. Strings can be only read.
Example
view plaincopy to clipboardprint?
' read
Dim isPaused </SPAN>
Set isPaused = HIDMacros.GetFSUIPCInt &H262, 2 </SPAN>
Dim rawClock </SPAN>
Set rawClock = HIDMacros.GetFSUIPCRaw &H238, 3 </SPAN>
' write </SPAN>
HIDMacros.SetFSUIPCInt &H262, 2, 1 'pause sim </SPAN>
HIDMacros.SetFSUIPCInt &H330, 2, 16096 'alt set 1006 mBars
Okay so here's my question. If I want to activate the following mouse macro I have created (Macro filename VACO.MCRO)
[Macros]
Module="B767main.GAU"
1=TCAS Display=RX30e0*Xa1cc
What do I write in the Hidmacros scriptpage? Sorry if I come across desperate, programming is not my field, so the learning curve is a bit steep for me.
</SPAN>