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 


[Help] Calling a command by Edit1 (Delphi)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
iRiot
Master Cheater
Reputation: 0

Joined: 03 Jul 2007
Posts: 395
Location: Aka RIOT

PostPosted: Sat Dec 29, 2007 12:15 am    Post subject: [Help] Calling a command by Edit1 (Delphi) Reply with quote

is it possible to do so? like for example i have a button and edit1box..

For the button i want it to make it do the command that is in edit1.text

Edit1.text is ShowMessage('Test');

how would i make a button tell it to do the command thats in edit1.text
like example... do edit1.text

btw any1 know where to get the TClientSocket and TServerSocket cant find them on google...

_________________
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 Dec 29, 2007 12:55 am    Post subject: Reply with quote

Can't be done. How do you expect the code to be compiled?
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Sat Dec 29, 2007 5:27 am    Post subject: Reply with quote

Try this code, it work like macro:
Code:
if  (pos('showmessage(''',edit2.Text)>0) and //Look for the [showmessage('] Command.
    (pos(''');',edit2.Text)>pos('showmessage(''',edit2.Text))then //Look for the end of the command [');].
    showmessage(
    copy(edit2.Text,//Copy the text from [showmessage('] to [');].
    pos('showmessage(''',edit2.Text)+length('showmessage(''')
    ,pos(''');',edit2.Text)-pos('showmessage(''',edit2.Text)-length('showmessage(''')
    ));
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
Page 1 of 1

 
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