Showing HP in a Label menu

Shout-Out

User Tag List

Results 1 to 2 of 2
  1. #1
    halloman's Avatar Banned
    Reputation
    8
    Join Date
    Jul 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Showing HP in a Label

    Hey,

    i know now how to Read the Hit Points out of the memory and I can show it to the console in an extra application.

    Now I want to Show the value of the Hit Points in my Text Label, but it dont work.

    Here I want to show the Value of my Hit Points :

    this->zPlayerHitPoints->Text = "here should be my hit points ";


    my code to find HP :

    Code:
    #include <iostream> 
    #include <Windows.h> 
    bool EnableDebugPrivilege();
    using namespace std; 
        HWND hwnd;
        DWORD ID;
        DWORD rw=0;
        HANDLE handle;
        unsigned int playerbase;
        unsigned int base;
    
    
    
    int mainzwei(void){
        unsigned int puffer;
        unsigned int buffer;
        unsigned adress = 0x010B65F4;
        hwnd = 0;
     
        EnableDebugPrivilege();
     hwnd = FindWindow(0,"World of Warcraft");
     GetWindowThreadProcessId(hwnd, &ID);                                                                                                                                                                   // Funktion
     handle = OpenProcess(PROCESS_ALL_ACCESS, 0, ID); 
     ReadProcessMemory(handle, (LPCVOID)adress, &puffer, sizeof(puffer), &rw);
        puffer = puffer + 0x34;
     ReadProcessMemory(handle, (LPCVOID)puffer, &puffer, sizeof(puffer), &rw);
     puffer = puffer + 0x24;
     ReadProcessMemory(handle, (LPCVOID)puffer, &playerbase, sizeof(puffer), &rw);
     base = playerbase + 0x8;
     ReadProcessMemory(handle, (LPCVOID)base, &base, sizeof(buffer), &rw);
     base = base + 0x17 * 4;
     ReadProcessMemory(handle, (LPCVOID)base, &buffer, sizeof(buffer), &rw);
     cout <<"\n------------------\n\nHP: "  << buffer << "\n\n\n";
     
        system("Pause");
    }
    bool EnableDebugPrivilege()
    {
     TOKEN_PRIVILEGES priv;
     HANDLE hThis, hToken;
     LUID luid;
      hThis = GetCurrentProcess();
     OpenProcessToken(hThis, TOKEN_ADJUST_PRIVILEGES, &hToken);
     LookupPrivilegeValue(0, TEXT("seDebugPrivilege"), &luid);
     priv.PrivilegeCount = 1;
     priv.Privileges[0].Luid = luid;
     priv.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
     AdjustTokenPrivileges(hToken, false, &priv, 0, 0, 0);
      CloseHandle(hToken);
     CloseHandle(hThis);
     return true;
    }
    
    int main(void){
        mainzwei();
    }
    Anyone can help me? I would be happy. =)

    Showing HP in a Label
  2. #2
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use google. You're just creating a very simple GUI component. Read the section rules.

Similar Threads

  1. Replies: 21
    Last Post: 09-11-2006, 04:43 PM
  2. Showing 2 weapons...
    By evancooleo in forum World of Warcraft Model Editing
    Replies: 5
    Last Post: 09-06-2006, 06:12 AM
  3. Show Off Ur Sig Skills
    By fasck in forum Community Chat
    Replies: 9
    Last Post: 08-09-2006, 04:23 PM
  4. A 9 minute video showing FLYING MOUNTS + Outlands and Xpack
    By Matt in forum World of Warcraft General
    Replies: 10
    Last Post: 08-05-2006, 10:32 AM
  5. Replies: 1
    Last Post: 03-20-2006, 12:16 AM
All times are GMT -5. The time now is 01:19 AM. 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