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 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
Kevin
Grandmaster Cheater Supreme
Reputation: 0

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

PostPosted: Sat Jun 16, 2007 11:47 am    Post subject: How do i change variables in delphi? Reply with quote

I saw Kebebs youtube tutorial about how to make a flash trainer. He used flasm to find the variables and then he wrote a code in VB6.0, but since i still dont have VB, i would like to know how i can make it work in delphi.

I mean, if you enter 9999 in a textbox, and click a button then your score or gold changes to 9999 or whatever amount you entered in the textbox.

anyone would explain what kind of code i should use to make this work?
Back to top
View user's profile Send private message MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Jun 16, 2007 2:00 pm    Post subject: Reply with quote

Probably want to look up how to convert a string to an array of bytes, then just write that.
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 17, 2007 12:37 pm    Post subject: Reply with quote

anyone else?
Back to top
View user's profile Send private message MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

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

uh look at my trainer, you mean something like that?

i can give you source o.o

and its not hard to get VB6

_________________
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 18, 2007 6:24 am    Post subject: Reply with quote

uhm, i mean where you have the game, then underneath or beside it you can put a textbox, then when you type in example, 99999 and click on a button which is attached to the textbox, your score/health/gold or whatever goes to 99999
Back to top
View user's profile Send private message MSN Messenger
oohownage
How do I cheat?
Reputation: 0

Joined: 23 Jun 2007
Posts: 3

PostPosted: Sat Jun 23, 2007 11:13 am    Post subject: Reply with quote

i have a problem to probably relating to the current problem in this topic, to get infinitive health, am playing css and want infinitive health, is it possible? and how i do it?
Back to top
View user's profile Send private message
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

PostPosted: Sat Jun 23, 2007 6:42 pm    Post subject: Reply with quote

slovach wrote:
Probably want to look up how to convert a string to an array of bytes, then just write that.
A string is an array of bytes.

Kekeb's tutorial shows you how to install the component then use the setVariable API. The equivelant in Delphi is to go to Components -> Install ActiveX -> Shockwave Flash (Flash9.ocx) -> OK -> [ActiveX] TShockWaveFlash (add to form) -> OnButtonClick = ShockwaveFlash1.setVariable(edit1.text,StrToInt(edit2.text));

Should be fine. Mine won't work because it always wants to install Flash9dbg.ocx instead of Flash9.ocx and won't let me manually grab Flash9.ocx since a ShockWaveFlash component is already installed. Confused Hopefully the same issue won't happen for you.

_________________


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: Sat Jun 23, 2007 7:42 pm    Post subject: Reply with quote

it says

Incompatible types: "Wide String" and "Integer"
Back to top
View user's profile Send private message MSN Messenger
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

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

I don't exactly know. Obviously the gold and stuff is a variable. So um, idk, maybe something like this, but I'm probably wrong.

Code:

gold:=Edit1.Text;


Gold could be an integer or something and the value it has will display in another text box.

Code:

Edit2.Text:=gold;


I'm probably wrong, I don't really make this stuff.

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Jun 23, 2007 8:38 pm    Post subject: Reply with quote

Uzeil wrote:
slovach wrote:
Probably want to look up how to convert a string to an array of bytes, then just write that.
A string is an array of bytes.


I know, Mr.Technical Smile But I don't think you can just throw that straight into WPM without a little voodoo magic as it's not the right data type?
Back to top
View user's profile Send private message
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

PostPosted: Sat Jun 23, 2007 8:51 pm    Post subject: Reply with quote

With WPM? Sure you can

WPM(handle,pointer(address),addr(mystring[1]),length,nil);

_________________


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: Sat Jun 23, 2007 9:03 pm    Post subject: Reply with quote

Ah, I see. Can't do that in .NET though.
Back to top
View user's profile Send private message
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

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

There's a Delphi.net? O_O

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

_________________


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
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

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

Uzeil wrote:
There's a Delphi.net?


Yep, you just haven't been exposed to it since you've been using an old version of Delphi (7). (which most people choose because its the last version before Delphi .NET, also why people use visual studio 6 (1998!))
Back to top
View user's profile Send private message
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

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

Shocked Can it make the beautiful GUIs that programs such as xentar's trainer and dlicious' trainers freatured? Shocked Very Happy
_________________


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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2, 3, 4  Next
Page 1 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