.I want to read out the informations, store them in my own structure and run my AutoIt-Code but I don´t know how to implement or read out the mumble link structure and store the informations in my own structure.
Any hints to do this?
I found some C#-Code which does this and now I want to tranlaste the code to AutiIT Code.
Code:
public static void OpenMumbleLink()
{
// Open the mapped memory file
mappedFile = MemoryMappedFile.CreateOrOpen("MumbleLink", Marshal.SizeOf(data));
accessor = mappedFile.CreateViewAccessor(0, Marshal.SizeOf(data));
}
public static void GetData()
{
// Make sure the map memory file is loaded
if (mappedFile == null) OpenMumbleLink();
// Read mapped memory file
accessor.Read(0, out data);
unsafe
{
fixed (LinkedMem* _data = &data)
{
// Parse info
playerInfo.x = (float)(_data->fAvatarPosition[0]) * InchesPerMeter;
playerInfo.y = (float)(_data->fAvatarPosition[1]) * InchesPerMeter;
playerInfo.z = (float)(_data->fAvatarPosition[2]) * InchesPerMeter;
playerInfo.map = (int)_data->context[28] + ((int)_data->context[29] * 256);
}
}
}






