?
Solved

Array of Byte ERROR in My Aplicattion

Posted on 2010-09-02
9
Medium Priority
?
338 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 13

Accepted Solution

by:
ThievingSix earned 2000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

801 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