Solved

Array of Byte ERROR in My Aplicattion

Posted on 2010-09-02
9
330 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
 

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now