Solved

Array of Byte ERROR in My Aplicattion

Posted on 2010-09-02
9
335 Views
Last Modified: 2012-05-10
const
  sempre1_Address = $00443000;
  Wind_Address = $00AA69D2;
  BufVento0: Array[0..49] Of Byte = ($00, $00, $00, $00,
                                     $00, $00, $00, $00,
                                     $00, $00, $00, $00,
                                     $00, $00, $00, $00,
                                     $00, $00, $00, $00,
                                     $00, $00, $00, $00,
                                     $00, $00, $00, $00,
                                     $00, $00, $00, $00,
                                     $00, $00, $00, $00,
                                     $00, $00, $00, $00,
                                     $00, $00, $00, $00,
                                     $00, $00, $00, $00,
                                     $00, $00);
     BufSempre: Array[0..9] of Byte = ($10, $00, $99, $00, $99, $00, $99, $00,
                                    $99, $00);


procedure Ttf4rmLandia.tmL4nd1aTimer(Sender: TObject);
begin
  try
  if ckVento.checked = True then begin
 PDWORD(Wind_Address)^:=;
  end;
  if ckSempre1.checked = True then begin
  PDWORD(sempre1_Address)^:=;


I'm making an application to facilitate a game that I play here at my computer, only for their own use.
Should I have got to address is the second freezer adress these values ..
BufVento0:
BufSempre

Array of Byte values in, so I made up as follows.
In case the application and a DLL that will be injected in this game ...

I did so
if ckVento.checked = True then begin
 PDWORD (Wind_Address )^:=;
  end;

I inserted a timer and did the following way, but giving this error because I can not insert the value of byte array in the code above.

PDWORD (sempre1_Address) ^: = BufSempre1;

Unit1.pas (93): Incompatible types: 'Cardinal' and 'Array'
0
Comment
Question by:nkilla
  • 5
  • 4
9 Comments
 
LVL 13

Accepted Solution

by:
ThievingSix earned 500 total points
ID: 33591750


Let's break this down shall we: PDWORD (sempre1_Address) ^: = BufSempre;

sempre1_Address - Ultimatly a DWORD but its an address/point
PDWORD (sempre1_Address) - Uses the address to point to a DWORD
PDWORD (sempre1_Address) ^ - Takes the address and gives you the DWORD of what that address points to

What you want to do is:
Move(BufSempre[0], Pointer(sempre1_Address)^, Length(BufSempre));

Open in new window

0
 

Author Comment

by:nkilla
ID: 33591973
I will test and give it u a awnser

Thanks For This help...


And other question...

How can I get the name of the doll that I'm playing within the game ...
And capture via a Label
It is possible without the adress?
0
 
LVL 13

Expert Comment

by:ThievingSix
ID: 33592045
If you don't have the address you'd have to search for it. Do you have a little more information about what you're trying to do?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:nkilla
ID: 33592072
Yes.
I could already do, it would be here

One my doubts, sorry for asking so much:)
It would be the next ...
How do I activate my cheat in the game?

For example, I'm in the game and it has a chat.
So if I want to turn it inside without having to activate the cheat in Checkbox
Just write for example

/Activate

Oh, and if the checkbox marked on the trainer and I disable active and in-game, just writing ..
I figured something using myCommand ...

Thanks for the help ThievingSix:
begin;
      lblUsername.Caption: ='';
      Memory: = $ 0092A8F5;
      for j: = 0 to 11
      begin;
        number: = (PBYTE (Memory) ^);
        IF number = 0 then break;
        character: = chr (number);
        lblUsername.Caption: lblUsername.Caption + = character;
        Memory: Memory = +1;
      end;

Open in new window

0
 
LVL 13

Expert Comment

by:ThievingSix
ID: 33592111
Having a chatbox in game leads me to believe this is a multiplayer game?
0
 

Author Comment

by:nkilla
ID: 33592158
Mirrors Edge
Not MultyPlayer

Is Game Normal , i want to activate by chat this Game
0
 
LVL 13

Expert Comment

by:ThievingSix
ID: 33592234
You'd have to find the address of the function that handles chat input, then hook the function.

Honestly, you'd be better off using GetAsyncKeyState and using hotkeys.
0
 

Author Comment

by:nkilla
ID: 33592603
am
Ok
Thanks Thieving

I will contact with u , if your awnser solved my problem , and accept solution

0
 

Author Closing Comment

by:nkilla
ID: 33779045
This code solved my problem thanks ThivingSiX

I used and work 100%
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question