| 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!!
|
Posted: Fri Oct 12, 2007 6:36 pm Post subject: Delphi 7 - Opening a File |
|
|
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 |
|
 |
Valvex I post too much
Reputation: 0
Joined: 11 Jun 2007 Posts: 2447 Location: 127.0.0.1
|
Posted: Fri Oct 12, 2007 6:41 pm Post subject: |
|
|
| 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 |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Oct 12, 2007 6:43 pm Post subject: |
|
|
| CreateProcess();
|
|
| Back to top |
|
 |
Valvex I post too much
Reputation: 0
Joined: 11 Jun 2007 Posts: 2447 Location: 127.0.0.1
|
Posted: Fri Oct 12, 2007 6:45 pm Post subject: |
|
|
| Flyte wrote: | | CreateProcess(); |
oh, well that saves both of us time
|
|
| Back to top |
|
 |
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!!
|
Posted: Fri Oct 12, 2007 6:47 pm Post subject: |
|
|
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 |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Oct 12, 2007 6:50 pm Post subject: |
|
|
| 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 |
|
 |
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!!
|
Posted: Fri Oct 12, 2007 7:00 pm Post subject: |
|
|
... 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 |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Oct 12, 2007 7:06 pm Post subject: |
|
|
The way it was written is hard to read, but after skimming through it I don't see any big errors.
|
|
| Back to top |
|
 |
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!!
|
Posted: Fri Oct 12, 2007 7:09 pm Post subject: |
|
|
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 |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Oct 12, 2007 7:13 pm Post subject: |
|
|
| 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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Oct 12, 2007 7:16 pm Post subject: |
|
|
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 |
|
 |
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!!
|
Posted: Sat Oct 13, 2007 8:30 am Post subject: |
|
|
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 |
|
 |
|