Delphi and single type menu

User Tag List

Results 1 to 5 of 5
  1. #1
    radegast's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Delphi and single type

    Hi,

    i wrote a simple application in Delphi, which can read from wow process's memory. But i have a big problem, how to interpret and use mined data.

    I can find player coordinates addresses, read 4 bytes for x-coordinate, but can't convert it to human readable form. Can you help me, how to retype array of byte type to single type ?

    Or am I totaly confused ?

    Thanx

    Delphi and single type
  2. #2
    Marlo's Avatar Banned
    Reputation
    84
    Join Date
    Jul 2006
    Posts
    2,453
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you tried just retriveing char[x] type?

  3. #3
    radegast's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I solved it .. it was my stupidity, or too much beer


    Code:
    var  x : array[0..3] of byte;
         sx : single absolute x;
    or
    Code:
       sx := single(x);

  4. #4
    robotkid's Avatar Contributor
    Reputation
    83
    Join Date
    Nov 2007
    Posts
    117
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    var
      bufreal: Single;
    begin
    ...
     ReadProcessMemory(HandleWindow, ptr(address), @bufreal , 4, BytesRead );
     PlayerX := bufreal;
     Label1.Caption := FloatToStr(PlayerX);
    ...
    end;
    This way also

  5. #5
    radegast's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, it is ..
    In near future I want to read more bytes at a time and then use it simply as part of some record aka PlayerStruct ... -all-in-one-
    Last edited by radegast; 01-31-2008 at 07:15 PM.

Similar Threads

  1. ObjectFields.Type and ObjectManagerEntry.Type not matching?
    By xalcon in forum WoW Memory Editing
    Replies: 3
    Last Post: 10-10-2012, 04:48 AM
  2. Unit and Monster Type
    By ChrisSch in forum Diablo 3 Memory Editing
    Replies: 39
    Last Post: 09-10-2012, 06:55 AM
  3. [Buying] D3 Gold, mostly US normal, also buy EU normal, US hardcore and other types limitedly
    By ChiChi1857 in forum Diablo 3 Buy Sell Trade
    Replies: 11
    Last Post: 07-25-2012, 09:15 PM
  4. Crackdown on speed programs and XYZ type programs.
    By navywarrior in forum World of Warcraft Bots and Programs
    Replies: 11
    Last Post: 05-20-2009, 10:25 PM
  5. Double exploration: Krazy hat, and single boot
    By tumadre in forum World of Warcraft Exploration
    Replies: 13
    Last Post: 12-06-2007, 04:36 PM
All times are GMT -5. The time now is 06: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