Integrate Mumble Link

11/09/2016 12:39 SturmGhost#1
I got a game which provides the player position and camera angle (and more) over [Only registered and activated users can see links. Click Here To Register...].

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);
                }
            }
        }
11/09/2016 13:45 Devsome#2
Right Thread for this :3
[Only registered and activated users can see links. Click Here To Register...]

#closed