Jump to content
  • Mouse X Y Z Position


    reapler
    • Version: All Product: Developers Type: Suggestion Status: Confirmed

    Hello, i would like to ask if a method can be added to return the currents cursor position in-game like:

        public static Vector3 GetCursorPosition()
        {
          try
          {
    		//return data
     		//return
          }
          catch (Exception ex)
          {
            Logging.WriteError(" " + ex, true);
            return new Vector3(0.0f, 0.0f, 0.0f);
          }
        }

    It would be really helpful for e.g. easy profile creating or editing.

     

    Thank you in advance.

     



    User Feedback

    Recommended Comments

    reapler

    Posted

    Hello, i looked abit in CE and got a few offsets for 3.3.5a which works on right & left click:

            public static Vector3 GetCursorPosition()
            {
                try
                {
                    int address = Memory.WowMemory.Memory.ReadInt32((uint)Memory.WowMemory.Memory.ReadInt32((uint)GetWoWBase() + 0x007743A0) + 0x2B0);
                    float _X = Memory.WowMemory.Memory.ReadFloat((uint)address + 0x3C);
                    float _Y = Memory.WowMemory.Memory.ReadFloat((uint)address + 0x40);
                    float _Z = Memory.WowMemory.Memory.ReadFloat((uint)address + 0x44);
                    return new Vector3(_X, _Y, _Z);
                }
                catch (Exception ex)
                {
                    Logging.WriteError("Error: " + ex, true);
                    return new Vector3(0.0f, 0.0f, 0.0f);
                }
            }

    I hope it can take off abit work.

     

    Best regards



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...