[Requests] [c#] how manages SEVERAL process of wow menu

User Tag List

Results 1 to 3 of 3
  1. #1
    guyvrouze's Avatar Member
    Reputation
    3
    Join Date
    Mar 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Requests] [c#] how manages SEVERAL process of wow

    Hi here
    First sorry for my poor english (google trad), secondo I do not know if I'm in the right place to ask for a code example if not tell me i will delet my post.

    So i come here to request you lords of the wow hack, one example of code . I can use BlackMagic lib for open read ect one instance of wow (thank tutorial) but i want to open multi wow process and put carracters names in listbox ! So how you made ​​this sorcery my lords !

    [Requests] [c#] how manages SEVERAL process of wow
  2. #2
    Xelper's Avatar ★ Elder ★
    Reputation
    1024
    Join Date
    Mar 2007
    Posts
    860
    Thanks G/R
    0/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My code here loops through all WoW that are currently running and then loops through all offsets I have in an array to find what version of WoW and the character name of that WoW. It then returns a List<string> of all running copies of WoW in the format of:
    Character Name (ProcessID) (WoWVersion)

    This is way more than what you were asking for, but you should be able to figure out how to trim out the stuff you don't need.. I am using BlackMagic anywhere you see Memory.Memory.

    What you want to do is:
    Get all Processes of WoW running
    Foreach Process in Processes.
    -> OpenProcessAndThread(ProcessID)
    -> ReadString(CharacterName)
    -> Add that character name to a list.



    Code:
            public static List<string> WoWProcesses()
            {
                List<string> myList = new List<string>();
                Process[] processes = Process.GetProcessesByName("Wow");
                string[,] OffsetArray = selectFormOffsetsArray;
                if (processes.Length < 0)
                {
                    myList.Clear();
                }
                else
                {
                    int intCurrentProcessID;
    
    
                    int count = processes.Length - 1;
                    for (int i = 0; i <= count; i++)
                    {
                        intCurrentProcessID = processes[i].Id;
                        clsMemory.Memory = new Hook(intCurrentProcessID);
                        try
                        {
                            Memory.Memory.OpenProcessAndThread(intCurrentProcessID);
                            //scan each offset to see if the value checks out.
    
    
                            for (int y = 0; y < 1024; y++)
                            {
                                //until we get a null value.
                                if (OffsetArray[y, 0] != null)
                                {
                                    //scan
                                    string wowVersion = ReadUTF8String((uint)Memory.Memory.MainModule.BaseAddress + uint.Parse(OffsetArray[y, 2].Replace("0x", "").Trim(), System.Globalization.NumberStyles.HexNumber), 5);
                                    if (wowVersion == OffsetArray[y, 1])
                                    {
                                        //wow version match, check for player
                                        string myCharName = ReadUTF8String((uint)Memory.Memory.MainModule.BaseAddress + uint.Parse(OffsetArray[y, 3].Replace("0x", "").Trim(), System.Globalization.NumberStyles.HexNumber), 30);
    
    
                                        if (myCharName != "")
                                        {
                                            myList.Add(myCharName + " (" + intCurrentProcessID + ") (" + wowVersion + ")");
                                            break;
                                        }
                                        else
                                        {
                                            myList.Add("Not Logged In" + " (" + intCurrentProcessID + ") (" + wowVersion + ")");
                                            break;
                                        }
                                    }
                                }
    
    
                                if (OffsetArray[y, 0] == null)
                                {
                                    break;
                                }
                            }
                        }
                        catch
                        {
                            //bad read, continue on.
                        }
                    }
                }
                return myList;
            }
    Last edited by Xelper; 03-23-2012 at 10:41 AM.

  3. #3
    guyvrouze's Avatar Member
    Reputation
    3
    Join Date
    Mar 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you lord Xelper you were a great help.

    I have another request, it is possible to check if a character is queue for an arena (offset?) and find personal arena rating?

Similar Threads

  1. [Request] How to find all current wow achievements
    By ev0 in forum World of Warcraft General
    Replies: 4
    Last Post: 01-20-2015, 10:49 AM
  2. [Request Guide]how to im start at c++ scripting for wow?
    By vittwow in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 08-07-2008, 10:09 AM
  3. (Another) How to Record Your On WoW Videos. - Full Guide + Images
    By impulse102 in forum World of Warcraft Guides
    Replies: 9
    Last Post: 11-26-2006, 03:08 AM
  4. how do i swap my wow sounds?
    By agrestic in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 11-22-2006, 11:31 PM
  5. How do you run a wow server with out editing wow?
    By Mike3667 in forum World of Warcraft General
    Replies: 2
    Last Post: 09-24-2006, 05:37 PM
All times are GMT -5. The time now is 12:16 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search