| View previous topic :: View next topic |
| Author |
Message |
malfunction Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Jan 2007 Posts: 1015 Location: http://www.behindthecorner.com/
|
Posted: Wed Jul 11, 2007 9:12 am Post subject: [HELP] DELPHI CODING [ms related fun program] |
|
|
so how would i code/write this in delphi
button -> onclick -> open website(eg. www.hidden-street.net)
button -> onclick -> open program(eg clock.exe)
how would i write it ???
i know how to add buttons same as in vb.
and btw its a maple related fun program
_________________
|
|
| Back to top |
|
 |
boreddude Grandmaster Cheater
Reputation: 0
Joined: 19 Jan 2007 Posts: 551 Location: detroit
|
Posted: Wed Jul 11, 2007 9:15 am Post subject: |
|
|
Popcorn made something like that, but idk if it's in delphi. here.
_________________
I am quitting today: Thurday, 8/30/07.
 |
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Wed Jul 11, 2007 9:41 am Post subject: |
|
|
For the web page, use ShellExecute
And for the program, use CreateProcess.
_________________
|
|
| Back to top |
|
 |
cipote Cheater
Reputation: 0
Joined: 12 Apr 2007 Posts: 34
|
Posted: Wed Jul 11, 2007 10:11 am Post subject: |
|
|
| thx for the info
|
|
| Back to top |
|
 |
malfunction Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Jan 2007 Posts: 1015 Location: http://www.behindthecorner.com/
|
Posted: Thu Jul 12, 2007 3:21 am Post subject: |
|
|
thanks
_________________
|
|
| Back to top |
|
 |
DevilGilad Grandmaster Cheater
Reputation: 0
Joined: 10 May 2007 Posts: 624 Location: Delete C:\WINDOWS folder and you'll be able to see me.
|
Posted: Thu Jul 12, 2007 3:55 am Post subject: |
|
|
Super-easy.
First, add to your uses list ShellAPI. If you want your WebBrowser to go to an address:
WebBrowser1.Navigate('http://www.hidden-street.net');
And to open a program:
ShellExecute(Handle, 'Open', 'lol.exe', nil, nil, SW_SHOWNORMAL) ;
_________________
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Thu Jul 12, 2007 5:16 am Post subject: |
|
|
ShellExecute(Handle, 'open', 'www.hidden-street.com', nil, nil, SW_SHOWNORMAL) ;
if you dont have your own webbrowser in your application.
|
|
| Back to top |
|
 |
|