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 


Delphi 7 - Opening a File

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

Joined: 04 Jun 2007
Posts: 1948
Location: If anyone has a GMS DK and they don't need it I'll have it!!

PostPosted: Fri Oct 12, 2007 6:36 pm    Post subject: Delphi 7 - Opening a File Reply with quote

In Delphi 7 how do you run a file? I want to make a button that when you clck it opens C:\Hacks\PedZing 2.0.exe. Does anyone know how to do that?
_________________
I'm alive and well, but I quit CEF for a while. Legitly playing since Novemberish 07. Starting hacking October 06.
Back to top
View user's profile Send private message
Valvex
I post too much
Reputation: 0

Joined: 11 Jun 2007
Posts: 2447
Location: 127.0.0.1

PostPosted: Fri Oct 12, 2007 6:41 pm    Post subject: Reply with quote

hmm well i know in vb it is something lik: shell ("\Hacks\PedZing 2.0.exe") or something. vb and delphi are sort of similar? one minute i'll open up delphi and check
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Fri Oct 12, 2007 6:43 pm    Post subject: Reply with quote

CreateProcess();
Back to top
View user's profile Send private message
Valvex
I post too much
Reputation: 0

Joined: 11 Jun 2007
Posts: 2447
Location: 127.0.0.1

PostPosted: Fri Oct 12, 2007 6:45 pm    Post subject: Reply with quote

Flyte wrote:
CreateProcess();

oh, well that saves both of us time
Back to top
View user's profile Send private message
Acim
Grandmaster Cheater Supreme
Reputation: 0

Joined: 04 Jun 2007
Posts: 1948
Location: If anyone has a GMS DK and they don't need it I'll have it!!

PostPosted: Fri Oct 12, 2007 6:47 pm    Post subject: Reply with quote

So like...

CreateProcess(C:\Hacks\PedZing 2.0.exe) or with ' '?

EDIT: hmm not working... can you give an example?

_________________
I'm alive and well, but I quit CEF for a while. Legitly playing since Novemberish 07. Starting hacking October 06.
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Fri Oct 12, 2007 6:50 pm    Post subject: Reply with quote

Acim wrote:
So like...

CreateProcess(C:\Hacks\PedZing 2.0.exe) or with ' '?

EDIT: hmm not working... can you give an example?


Google and MSDN are your friends.
Back to top
View user's profile Send private message
Acim
Grandmaster Cheater Supreme
Reputation: 0

Joined: 04 Jun 2007
Posts: 1948
Location: If anyone has a GMS DK and they don't need it I'll have it!!

PostPosted: Fri Oct 12, 2007 7:00 pm    Post subject: Reply with quote

... I have to go now but does this look good?

http://www.chami.com/tips/delphi/122096D.html

_________________
I'm alive and well, but I quit CEF for a while. Legitly playing since Novemberish 07. Starting hacking October 06.
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Fri Oct 12, 2007 7:06 pm    Post subject: Reply with quote

Acim wrote:
... I have to go now but does this look good?

http://www.chami.com/tips/delphi/122096D.html


The way it was written is hard to read, but after skimming through it I don't see any big errors.
Back to top
View user's profile Send private message
Acim
Grandmaster Cheater Supreme
Reputation: 0

Joined: 04 Jun 2007
Posts: 1948
Location: If anyone has a GMS DK and they don't need it I'll have it!!

PostPosted: Fri Oct 12, 2007 7:09 pm    Post subject: Reply with quote

I dont really get it, how do I used CreateProcess? None of googles freakin links explain it well. Lemme search a delphi book online...
_________________
I'm alive and well, but I quit CEF for a while. Legitly playing since Novemberish 07. Starting hacking October 06.
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Fri Oct 12, 2007 7:13 pm    Post subject: Reply with quote

Acim wrote:
I dont really get it, how do I used CreateProcess? None of googles freakin links explain it well. Lemme search a delphi book online...


CreateProcess

It shows it in C syntax, but you should be able to use it.
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Oct 12, 2007 7:16 pm    Post subject: Reply with quote

You can also use ShellExecute(Handle, 'open', 'C:\Hacks\PedZing 2.0.exe', nil, nil, SW_SHOWNORMAL);
if it says you need PAnsiChar then make it PAnsiChar('Path') oh and add ShellAPI to uses.
Back to top
View user's profile Send private message
Acim
Grandmaster Cheater Supreme
Reputation: 0

Joined: 04 Jun 2007
Posts: 1948
Location: If anyone has a GMS DK and they don't need it I'll have it!!

PostPosted: Sat Oct 13, 2007 8:30 am    Post subject: Reply with quote

Could someone give me a more detailed explaination? I don't get it.

Okay, I have a program with Button1. So what should I have for the button's code and what should I have for the main code and everything? Im really confused.

_________________
I'm alive and well, but I quit CEF for a while. Legitly playing since Novemberish 07. Starting hacking October 06.
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