[C#][Copy/Pasta] Keybindings menu

User Tag List

Results 1 to 3 of 3
  1. #1
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C#][Copy/Pasta] Keybindings

    Easy code which retrieve all actives bindings :

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    namespace WowKeyBindings
    {
        class Program
        {
    
            static void Main(string[] args)
            {
    
                Magic.BlackMagic BM = new Magic.BlackMagic();
                BM.OpenProcessAndThread(Magic.SProcess.GetProcessFromProcessName("Wow"));
    
                UInt32 Offset_Base = 0x00BEADD8;
                UInt32 Offset_First = 0xB8;
                UInt32 Offset_Next = 0xB0;
                UInt32 Offset_KeyString = 0x14;
                UInt32 Offset_ActionString = 0x28;
    
                UInt32 BindingsManager = BM.ReadUInt(Offset_Base);
    
                Console.WriteLine("Bindings manager : 0x" + BindingsManager.ToString("X8"));
    
                UInt32 FirstStruct = BM.ReadUInt(BindingsManager + Offset_First);
    
                Console.WriteLine("First struct : 0x" + FirstStruct.ToString("X8"));
    
                UInt32 StructPointer = FirstStruct;
    
                while (StructPointer != 0)
                {
    
                    String KeyString = BM.ReadASCIIString(BM.ReadUInt(StructPointer + Offset_KeyString), 255);
                    String ActionString = BM.ReadASCIIString(BM.ReadUInt(StructPointer + Offset_ActionString), 255);
    
                    if (KeyString.Length > 0 &&
                        ActionString.Length > 0)
                    {
    
                        Console.WriteLine("Binding : 0x" + StructPointer.ToString("X8") + " Key : " + KeyString + " Action : " + ActionString);
    
                        StructPointer = BM.ReadUInt(StructPointer + BM.ReadUInt(BindingsManager + 0xB0) + 4);
    
                    }
    
                }
    
                Console.ReadLine();
    
            }
        }
    }


    Thanks to Tanaris4 for the main idea !

    [C#][Copy/Pasta] Keybindings
  2. #2
    qjlex's Avatar Member
    Reputation
    1
    Join Date
    Oct 2007
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is useful. Thanks

  3. #3
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you'd like the OS X version, you can view it here: BindingsController.m - pocketgnome - Project Hosting on Google Code

    Although I think everyone hates macs
    https://tanaris4.com

Similar Threads

  1. [C#][Copy/Pasta] Skills Rank Informations
    By JuJuBoSc in forum WoW Memory Editing
    Replies: 5
    Last Post: 09-04-2010, 06:05 AM
  2. [C#][Copy/Pasta] Macros
    By JuJuBoSc in forum WoW Memory Editing
    Replies: 0
    Last Post: 08-18-2010, 05:52 PM
  3. [C#][Copy/Pasta] Out of process DBC reading
    By Apoc in forum WoW Memory Editing
    Replies: 51
    Last Post: 08-16-2010, 02:19 PM
  4. Replies: 47
    Last Post: 03-09-2010, 11:25 AM
All times are GMT -5. The time now is 03:15 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search