| View previous topic :: View next topic |
| Author |
Message |
ZenX Grandmaster Cheater Supreme
Reputation: 1
Joined: 26 May 2007 Posts: 1021 Location: ">>Pointer<<" : Address 00400560 Offset :1FE
|
Posted: Fri Jul 06, 2007 9:06 pm Post subject: (*Call Internet Explorer From Delphi*) |
|
|
| Code: |
program iexplor;
uses
Windows, OLEAuto;
procedure OpenInternetExplorer( sURL : string );
const
csOLEObjName = 'InternetExplorer.Application';
var
IE : Variant;
WinHanlde : HWnd;
begin
if( VarIsEmpty( IE ) )then
begin
IE := CreateOleObject( csOLEObjName );
IE.Visible := true;
IE.Navigate( sURL );
end else
begin
WinHanlde := FindWIndow( 'IEFrame', nil );
if( 0 <> WinHanlde )then
begin
IE.Navigate( sURL );
SetForegroundWindow( WinHanlde );
end else
begin
// handle error ...
end;
end;
end;
begin
//Website it will open with IExplorer
OpenInternetExplorer( 'microsoft.com' );
end.
|
_________________
CEF Moderator since 2007 ^_^
ZenX-Engine |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Jul 06, 2007 9:09 pm Post subject: |
|
|
| Why are you just pasting shit from google?
|
|
| Back to top |
|
 |
ZenX Grandmaster Cheater Supreme
Reputation: 1
Joined: 26 May 2007 Posts: 1021 Location: ">>Pointer<<" : Address 00400560 Offset :1FE
|
Posted: Fri Jul 06, 2007 9:10 pm Post subject: |
|
|
| slovach wrote: | | Why are you just pasting shit from google? |
For new Learners to learn A bit more about delphi.
Btw, not google lol.
_________________
CEF Moderator since 2007 ^_^
ZenX-Engine |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Jul 06, 2007 9:12 pm Post subject: |
|
|
Lets pick a random line and throw it into google...
SetForegroundWindow( WinHanlde );
bang this comes up.
http://www.chami.com/tips/delphi/110396D.html
if you know so much about the language, how about you grace us with some of your knowledge?
|
|
| Back to top |
|
 |
Ch04s Master Cheater
Reputation: 0
Joined: 28 May 2007 Posts: 406 Location: One never knows.
|
Posted: Sat Jul 07, 2007 9:52 am Post subject: |
|
|
| Lmao, people who are new to programming are going to look at this and be tottaly stumped. If you want to teach someone something you atleast tell them what each function may do and what not.
|
|
| Back to top |
|
 |
TheIndianGuy Advanced Cheater
Reputation: 102
Joined: 14 Jan 2007 Posts: 88
|
Posted: Sun Jul 08, 2007 11:29 am Post subject: |
|
|
| Ch04s wrote: | | Lmao, people who are new to programming are going to look at this and be tottaly stumped. If you want to teach someone something you atleast tell them what each function may do and what not. |
*clap* *clap* *clap* i agree with you all the way
|
|
| Back to top |
|
 |
|