Solved

Array of Byte ERROR in My Aplicattion

Posted on 2010-09-02
9
333 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 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

13 Experts available now in Live!

Get 1:1 Help Now