| View previous topic :: View next topic |
| Author |
Message |
Lorrenzo Moderator
Reputation: 4
Joined: 02 Jun 2006 Posts: 3744
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Tue Jul 24, 2007 4:42 pm Post subject: |
|
|
| post source code
|
|
| Back to top |
|
 |
Lorrenzo Moderator
Reputation: 4
Joined: 02 Jun 2006 Posts: 3744
|
Posted: Tue Jul 24, 2007 4:51 pm Post subject: |
|
|
There, not much..prolly will need a fix or 2
_________________
LAWLrrenzolicious |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Tue Jul 24, 2007 5:09 pm Post subject: |
|
|
Hardcoding to C:\. Bad.
Use SHGetFolderPath to get the paths to program files, my documents, my pictures etc via class IDs. To get to the root (in your case c:\, in my case d:\) use PathStripToRoot. To check whether programs like AOL or photoshop are installed and where they're installed, use the registry (where add/remove programs stores the information)
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Tue Jul 24, 2007 5:09 pm Post subject: |
|
|
Um, whats so hard about using shellexecute again? And to make an about form come up. Make a new form and design it then. Then double click on the about button and put this code.
| Code: |
Form2:=TForm2.Create(self);
Form2.ShowModal;
|
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Lorrenzo Moderator
Reputation: 4
Joined: 02 Jun 2006 Posts: 3744
|
Posted: Tue Jul 24, 2007 5:13 pm Post subject: |
|
|
| appalsap wrote: | Hardcoding to C:\. Bad.
Use SHGetFolderPath to get the paths to program files, my documents, my pictures etc via class IDs. To get to the root (in your case c:\, in my case d:\) use PathStripToRoot. To check whether programs like AOL or photoshop are installed and where they're installed, use the registry (where add/remove programs stores the information) |
Ok, I think I understand..
| oib111 wrote: | Um, whats so hard about using shellexecute again? And to make an about form come up. Make a new form and design it then. Then double click on the about button and put this code.
| Code: |
Form2:=TForm2.Create(self);
Form2.ShowModal;
|
|
Thanks
_________________
LAWLrrenzolicious |
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Tue Jul 24, 2007 5:21 pm Post subject: |
|
|
You may want to use CreateProcess() instead of ShellExecute() to open your programs, if that's what your doing right now.
_________________
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Tue Jul 24, 2007 5:40 pm Post subject: |
|
|
on some computers photo shop directory is diffrent/doesnt exist...
so use a batch file and put photo shop on the same folder or another and do in the batch file:
move photoshopfoldername: c:\Docume~1\%username%\desktop
i dont really remember the move command im not sure its like that...
u can also do the same with shell execute... its easier...
paint = MSPaint?
ShellExecute(Handle, 'open', 'C:\Windows\System32\MSPaint.exe', nil, nil, SW_SHOWNORMAL);
notepad:
ShellExecute(Handle, 'open', 'C:\Windows\System32\Notepad.exe', nil, nil, SW_SHOWNORMAL);
My Documents:
i dont know on delphi... i know with command prompt:
start C:\Docume~1\%username%\desktop\Mydocu~1\
and u can use shell execute on that batch file...
maple:
ShellExecute(Handle, 'open', 'C:\Program Files\Nexon\MapleStory\MapleStory.exe', nil, nil, SW_SHOWNORMAL);
(might be wizet for old maple users... =\ i think...)
c: lol O_o
ShellExecute(Handle, 'open', 'C:\', nil, nil, SW_SHOWNORMAL);
internet?
ShellExecute(Handle, 'open', 'http://?????', nil, nil, SW_SHOWNORMAL);
delphi if i remember..:
ShellExecute(Handle, 'open', 'C:\Program Files\Borland\Delphi7\Delphi7\Delphi 7.exe', nil, nil, SW_SHOWNORMAL);
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Tue Jul 24, 2007 5:45 pm Post subject: |
|
|
Symbol, did you even read what appalsap wrote? And stop using ShellExecute to open programs. And after, you all say "I'm here to learn" you don't even take in consideration what other people said.
_________________
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Tue Jul 24, 2007 5:47 pm Post subject: |
|
|
no i havent read O_o
now i did... =\
i dont even know what she means im new at delphi
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Tue Jul 24, 2007 5:55 pm Post subject: |
|
|
In appalsap post you can find 2 functions: PathStripToRoot and SHGetFolderPath. Now there's this cool site called MSDN So you go there's, and there's a search box on the top left, you search those functions there. You will end up with a page that will explain to you what that function does.
Example are in C, and since you may not understand C, you go to google and search for example "PathStripToRoot delphi" Or something like that, and well look at examples and that's how you learn.
_________________
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Tue Jul 24, 2007 6:06 pm Post subject: |
|
|
already searched SHGetFolderPath delphi =)
reading now
|
|
| Back to top |
|
 |
Lorrenzo Moderator
Reputation: 4
Joined: 02 Jun 2006 Posts: 3744
|
Posted: Tue Jul 24, 2007 6:37 pm Post subject: |
|
|
| appalsap wrote: | Hardcoding to C:\. Bad.
Use SHGetFolderPath to get the paths to program files, my documents, my pictures etc via class IDs. To get to the root (in your case c:\, in my case d:\) use PathStripToRoot. To check whether programs like AOL or photoshop are installed and where they're installed, use the registry (where add/remove programs stores the information) |
Yeah, totally tried to understand, check out MSDN, but don't quite get it.
can you try to explain just alittle more..I'm really new to all this..
thanks..
_________________
LAWLrrenzolicious |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Tue Jul 24, 2007 6:37 pm Post subject: |
|
|
Guys, it really doesnt matter. Cuz this is a launcher for him, not us. He should know his file paths. If he doesn't he should figure them out, it really isn't that hard.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Tue Jul 24, 2007 6:41 pm Post subject: |
|
|
| oib111 wrote: | | Guys, it really doesnt matter. Cuz this is a launcher for him, not us. He should know his file paths. If he doesn't he should figure them out, it really isn't that hard. |
Well if he uses what appalsap said, he could actually learn something new and not always doing it the wrong way.
_________________
|
|
| Back to top |
|
 |
|