Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How do i change variables in delphi?
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sat Jun 23, 2007 9:54 pm    Post subject: Reply with quote

"ugly black"? you don't need .NET for that Razz
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Jun 23, 2007 10:30 pm    Post subject: Reply with quote

Uzeil wrote:
And yes you should be able to do that in .NET . All compilers should allow you to get the VA of a variable.


Yeah, I figured it out shortly after.

On the topic of Delphi, I'm tempted to goof around with it a bit, but the EXE's it shits out are absolutely massive. I've seen small Delphi EXE's before, whats the trick to it?
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sat Jun 23, 2007 10:40 pm    Post subject: Reply with quote

The trick is KOL
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Jun 24, 2007 1:01 am    Post subject: Reply with quote

I wish I could get that shit working. It always seems to complain about something when I try to compile with it.

edit: oh god figured it out. BUILD. hurr hurr.
Back to top
View user's profile Send private message
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

PostPosted: Sun Jun 24, 2007 3:49 am    Post subject: Reply with quote

appalsap wrote:
"ugly black"? you don't need .NET for that Razz

I can't seem to find the string "ugly black" anywhere :'(

Although I guess it's possible that the buttons they used may have been images that they made themselves, and the etitlebar buttons, main menu bars along with their gradients being based on images and/or seethrough buttons.... I'm just doubtins it :'(

_________________


Mini Engine v3.0
Mipla v1.0

Reposted old threads out of the MS section.
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Sun Jun 24, 2007 4:34 am    Post subject: Reply with quote

Uzeil, why do i get that error when using the first code you wrote to me ?
Back to top
View user's profile Send private message MSN Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sun Jun 24, 2007 7:58 am    Post subject: Reply with quote

OHH you thought that was standard? No silly, they made the titlebar buttons and everything themselves Razz

The reason you saw some of those icons frequently is because they were icons part of a set donated to the public domain, you can find them in wikimedia if you search hard enough.
Back to top
View user's profile Send private message
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

PostPosted: Sun Jun 24, 2007 8:04 am    Post subject: Reply with quote

Kevinnn wrote:
Uzeil, why do i get that error when using the first code you wrote to me ?
You say "that" as if you posted it somewhere Confused

Appal: Aye, I figured they were components that came with .NET as both ducspam and xentar code their GUIs in C# .NET if I've been in for med correctly Razz Figured the GUI similarity and the .NET similarity were one in the same.

_________________


Mini Engine v3.0
Mipla v1.0

Reposted old threads out of the MS section.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Jun 24, 2007 12:20 pm    Post subject: Reply with quote

Delphi really does have the clunkiest feeling IDE ever, maybe because I'm new to it, but I like VS way better.
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Sun Jun 24, 2007 1:57 pm    Post subject: Reply with quote

I did

Incompatible types: "Wide String" and "Integer"
Back to top
View user's profile Send private message MSN Messenger
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

PostPosted: Mon Jun 25, 2007 12:01 am    Post subject: Reply with quote

In what instance are you needing an integer?

As I said, if you want a string '9999' to be converted to a decimal 9999, then use StrToInt(<string variable containing '9999'>); , if you want to use say WriteProcessMemory with a string, you'd use addr(<string var>[1]) to get it's pointer.

_________________


Mini Engine v3.0
Mipla v1.0

Reposted old threads out of the MS section.
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Mon Jun 25, 2007 9:42 am    Post subject: Reply with quote

im sorry, but i just dont get it Shocked Shocked
Back to top
View user's profile Send private message MSN Messenger
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Mon Jun 25, 2007 9:50 pm    Post subject: Reply with quote

where do u need the integer? aka, in which function?
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Tue Jun 26, 2007 4:04 am    Post subject: Reply with quote

You idiot,you think its easy ?

you need to learn API calls,attach your program to your browser.

its like making a mini memory editor,dont think its

Edit1
Button1

and you're done !

wtf ? hell no ! delphi isnt that sucker.

and first of all what game is it ?

learn how the game works and runs...

learns Advanced delphi programming,you're taking yourself into serious shit brother,its not like

1..2...3 and BAM! yay...i did it...no its not ! -_-"

Learn how to work with Read/Write Process Memory,also you can make a .dll and inject it to your browser...but first make a simple "Hellow World" program,then try this :S

try patching the process..

declare with var's

(**************SAMPLE CODE***************)

Code:
var
  WindowName: Integer;
  ProcessId: Integer;
  ThreadId: Integer;
  buf: PChar;
  HandleWindow: Integer;
  Write: Cardinal;

const
  WindowTitle = 'iexplorer.exe'; <--- The program/process name should be in there,iexplorer.exe is MS Internet Explorer,incase you're using FireFox,FireFox.exe.
  Address = $A662D6;
  PokeValue = $4A;
  NumberOfBytes = 2;

procedure TForm1.Button1Click(Sender: TObject);
begin
  WindowName := FindWindow(nil, WindowTitle); // Remember the window title we edited in the const ?,well here it uses it.

////////
//The following code is,if "iexplorer.exe" is not found (if WindowName = 0)
then a message (uses dialog) will come (Then ShowDlg(''Program not running.')
With the features "Ok" and with a symbol "Warning".

  if WindowName = 0 then
  begin
    MessageDlg('Program not running.', mtWarning, [mbOK], 0);
  end;

///////
//im not going to explaine you all this bunch of code since its not that simple as it looks,but im pretty sure you'll get it

  ThreadId := GetWindowThreadProcessId(WindowName, @ProcessId);
  HandleWindow := OpenProcess(PROCESS_ALL_ACCESS, False, ProcessId);

  GetMem(buf, 1);
  buf^ := Chr(PokeValue);
  WriteProcessMemory(HandleWindow, ptr(Address), buf, NumberOfBytes, Write);
  FreeMem(buf);
  CloseHandle(HandleWindow);
end;


Dont forget to Edit const and modify the address you're looking for that holds the:

Gold
HP

or w/e it is
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Tue Jun 26, 2007 4:25 am    Post subject: Reply with quote

swearing Shocked
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites