Basically i am trying to write a program to change the value of money in co, I know it can be easily done with programs like TSearch, but I want to make my own simple program, specifally for co and easier.
My code so far:
Code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
procedure RadioButton1milClick(Sender: TObject);
procedure RadioButton10milClick(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
Var
WindowName : integer;
ProcessId : integer;
ThreadId : integer; // defining variable's types ;
buf : PChar;
HandleWindow : Integer;
write : cardinal;
PokeValue1 : integer; //!the value that will be wriiten to co ;
Const
WindowTitle = '[Conquer2.0]'; //defines the window name ;
Address1 = $57C140; //defines the address to poke ;
NumberOfBytes1 = 4; //defines amount of bytes to write;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
begin
Edit1.Text := StrToInt(PokeValue1);
If WindowName = 0 then // check if the game is running;
begin
MessageDlg('Conquer isnt running idiot.', mtwarning,[mbOK],0);
end;
// the following will writes the value;
ThreadId := GetWindowThreadProcessId(WindowName,@ProcessId);
HandleWindow := OpenProcess(PROCESS_ALL_ACCESS,False,ProcessId);
GetMem(buf,1);
buf^ := Chr(PokeValue1);
WriteProcessMemory(HandleWindow,ptr(Address1),buf,NumberOfBytes1,write);
FreeMem(buf);
closehandle(HandleWindow);
end;
end;
Basically, so far ive just got stuck on writing the value in the text box to the variable PokeValue1 because even though I've done a string to int conversition, it still says incompatiable types string and integer.
thank you for trying. Um, no i dont think it shud be PokeValue1 := StrToInt(Edit.text); becos im trying to assign the user input value to the variable pokevalue1, not the otheray round.
DELPHI - Who make Exploits, Hacks and Tools with DELPHI? 05/15/2013 - CO2 Programming - 13 Replies Hi all.
Iwith DELPHI, but a dont now.
hello, I use Delphi to program and i like someone put here source code of make Exploits, Hacks and Tools bot here, or part of the code.
ty to all
[DELPHI&METIN]Wie sind die Delphi Befehle für einen Bot? 03/07/2010 - General Coding - 3 Replies Hallo liebe com,
ich habe mal eine Frage: Ich möchte einen Metin Bot in Delphi schreiben aber ich weiß nicht die Befehle für
eine bestimmte Taste senden etc.
könnt ihr mir die pls sagen oder per pn geben
MfGGGGGG
Delphi 6 10/31/2009 - General Coding - 0 Replies Hi ich suche einen funktionierenden DL-Link von Delphi 6 (die kostenlose Version) habe nämlich keine Lust die Testversion von Embarcadero zu benutzen. Auch wenn ich erst anfange möchte ich wenigstens eine Version die kostenlos ist.
Hoffe das ihr mir helfen könntet.
WTS WR LVL 94 Delphi 08/16/2009 - Perfect World Trading - 0 Replies hi i sell my wr lvl 94 on delphi server
full hh 90 eq all eq + 4
pm me with offers
http://pic.ipicture.ru/uploads/090816/0R6aEiSjtU. jpg
http://pic.ipicture.ru/uploads/090816/MJnZPenKdT. jpg
delphi 06/02/2008 - Cabal Online - 0 Replies was trying to create a UCE after formatting my computer. but nw my delphi does not work anymore. it keep saying my reg key is invalid. is there any crack of delphi 7?