SturmGhost Posted November 10, 2016 Posted November 10, 2016 (edited) I got a game which has mumble link integrated. Just for clearence: Accessing the structure is allowed by game-developers. Reference: here, here and here. I got a code snipped for C# but I'm not able to rewrite the code for AutoIT. 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); } } } How can I access the virtual memory mapped file and store the mumble link structure elements to my own structure? Could someone help me or give me some hints to do this? Edited November 10, 2016 by SturmGhost
Moderators Melba23 Posted November 10, 2016 Moderators Posted November 10, 2016 SturmGhost, Quote Just for clearence: Accessing the structure is allowed by game-developers Just for information: Interacting with a game in any form is not allowed in this forum. Please read the Forum rules before posting again - thread locked. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts