buenas soy Nuevo en el foro , tengo el siguiente problema quisiera poner a un address su valor en
text cosa que no he logrado hacer ya q sale el error "is Not a valid integer value".
esto es para un juego... sinceramente
Normalmente para leer una address en byte uso esta variable:
Código Delphi
[-]Value:=0;
PBYTE($0089DBE8)^:=Value;
he estado averiguando pero no he llegado a saber que variable puedo usar en vez de
PBYTE para que el value pueda leer del tipo
text.
Código Delphi
[-]Value:=cluBdelphi;
PBYTE($0089DBE8)^:=Value;
en la form de la dll lo tengo asi :
Código Delphi
[-]library Project1;
uses
SysUtils,
Classes,
Windows,
Unit1 in 'Unit1.pas' ;
{$R *.res}
var
AtProcessobymr:THandle;
hId:Cardinal;
procedure AbrirTrainerbymr;
begin
Form1:=TForm1.Create(nil);
Form1.ShowModal;
end;
begin
AtProcessobymr:=OpenProcess(PROCESS_ALL_ACCESS,false,GetCurrentProcessID);
CreateRemoteThread(AtProcessobymr,nil,0,@AbrirTrainerbymr,@AbrirTrainerbymr,0,hID);
end.
begin
end.
en el form esta asi:
Código Delphi
[-]unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, WinSkinData , tlhelp32;
type
TForm1 = class(TForm)
CheckBox1: TCheckBox;
Timer1: TTimer;
CheckBox2: TCheckBox;
CheckBox3: TCheckBox;
Edit1: TEdit;
CheckBox4: TCheckBox;
CheckBox5: TCheckBox;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
CheckBox6: TCheckBox;
Edit5: TEdit;
CheckBox7: TCheckBox;
SkinData1: TSkinData;
Edit6: TEdit;
procedure Timer1Timer(Sender: TObject);
private
public
end;
var
Form1: TForm1;
Memory: DWORD;
value: dword;
j: integer;
number: byte;
implementation
{$R *.dfm}
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if Checkbox1.Checked=True then begin
Value:=strtoint(Edit1.text);
PBYTE($0089DBE8)^:=Value;
end;
if Checkbox2.Checked=True then begin
Value:=0;
PINT64($0089F71C)^:=Value;
PINT64($0089F6AC)^:=Value;
end;
end;
end.
este codigo me funciona bien para leer cualquier address en distintos tipos de bytes pero tengo el problema para leer del tipo
text gracias por leer mi tema