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 


How to make a web browser with delphi?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Negima
I post too much
Reputation: 5

Joined: 22 May 2007
Posts: 2221

PostPosted: Mon Aug 13, 2007 2:40 am    Post subject: How to make a web browser with delphi? Reply with quote

Can someone link me a tut?
Back to top
View user's profile Send private message Visit poster's website
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Mon Aug 13, 2007 3:29 am    Post subject: Reply with quote

There's no tut, you need to use what you've gained from reading "Delphi programming" e-Books.

but heres a short instruction:

Make a WebBrowser in your form, but a "Button" and link it to your webbrowser1

Begin
Webbrowser1.Navigate(0,'Http://google.com');
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Mon Aug 13, 2007 3:31 am    Post subject: Reply with quote

Code:

Webbrowser1.Navigate(0,'Http://google.com');


Why the 0?

Also for back and foward its plain simple

Code:

webbrowser.GoBack;
webbrowser.GoFoward;
webbrowser.Stop;
webbrowser.Refresh;



Google it and there should come a tutorial from sythe which is an okay tutorial for the basics.
Back to top
View user's profile Send private message MSN Messenger
malfunction
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Jan 2007
Posts: 1015
Location: http://www.behindthecorner.com/

PostPosted: Mon Aug 13, 2007 5:08 am    Post subject: Re: How to make a web browser with delphi? Reply with quote

Negima wrote:
Can someone link me a tut?

very easy, drop a Twebbrowser from "internet" tab (i think)
drop a edit box and some buttons
eg. Go button = webbrowser1.navigate (edit1.text);
Back = webbrowser1.GoBack;
Forward = webbrowser1.GoForward;
Refresh = webbrowser1.Refresh;
Stop = webbrowser1.Stop;

or u can just type webbrowser1. and there should pop up a white box which has all the commands

@kas fixed

_________________


Last edited by malfunction on Mon Aug 13, 2007 10:39 am; edited 1 time in total
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Mon Aug 13, 2007 6:43 am    Post subject: Re: How to make a web browser with delphi? Reply with quote

skyllakarean wrote:
Negima wrote:
Can someone link me a tut?

very easy, drop a Twebbrowser from "internet" tab (i think)
drop a edit box and some buttons
eg. Go button = webbrowser1.navigate ('edit1.text');
Back = webbrowser1.GoBack;
Forward = webbrowser1.GoForward;
Refresh = webbrowser1.Refresh;
Stop = webbrowser1.Stop;

or u can just type webbrowser1. and there should pop up a white box which has all the commands


lets me fix you:

eg. Go button = webbrowser1.navigate ('edit1.text'); //will open http://edit1.text <-- there's no such thing as a place.

pocedure button1click
begin
webbrowser1.navigate (edit1.text); //this will take you to the place typed in the edit1 box
end;
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25820
Location: The netherlands

PostPosted: Mon Aug 13, 2007 6:46 am    Post subject: Reply with quote

also, you could also make use of a tcp connection connect to port 80, send some commands, receive the data and parse it. and use that data to build up a window with text and pictures and stuff....
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Mon Aug 13, 2007 6:55 am    Post subject: Reply with quote

On the webbrowser OnProgressChange put this code

Code:

if Progress>0 then
begin ProgressBar1.max := Progressmax;
  ProgressBar1.Position := Progress;
end
else
Progressbar1.Position := 0;


Of course for that you need to throw a Progressbar on your form (the standard progress bar looks ugly. Go to Win32 palette and drop a XP Manifest on your form, which makes it look like Windows XP instead of older versions)

This is to get like you see in the top border on IE/Firefox

Code:

MainForm.Caption:= (webbrowser1.LocationName+' - Kevinnn Browser');


Now it will say the main sites name + Kevinnn Browser. ect:
Cheat Engine :: View Topic - How to make a web browser with delphi? - Kevinnn Browser

On the webbrowsers OnNavigateComplete2 event put this code (if you wish, i dont wanna force you lol)

Code:

edit1.text:= webbrowser1.locationURL;


That does so in the edit1 (the adressbar) the url changes when you enter another site, so it doesn't stay the same.

On the webbrowser CommandStateChange event put this code to make the back/foward buttons work without giving errors (I found this on Sythe, credit to whoever did this)
Code:

case Command of
            CSC_NAVIGATEBACK :
            begin
               speedbutton3.Enabled := Enable;
            end;

            CSC_NAVIGATEFORWARD :
            begin
               speedbutton2.Enabled := Enable;
            end;
         end;


If you wanna make something like google toolbar on your webbrowser do this (This is for the Danish one, you have to find it on your own language yourself)
Code:

webbrowser1.Navigate('http://www.google.dk/search?hl=da&q='+ Edit2.Text + '&btnG=S%C3%B8g&lr=');

Edit2 is the "search on google" box, whatever you type in there it searchs.

tell me if theres anything else.
Back to top
View user's profile Send private message MSN Messenger
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Mon Aug 13, 2007 9:29 am    Post subject: Reply with quote

MainForm.Caption:= (webbrowser1.LocationName+' - Kevinnn Browser');


Laughing Kevin's browser ?
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Mon Aug 13, 2007 9:36 am    Post subject: Reply with quote

Just an example.
Back to top
View user's profile Send private message MSN Messenger
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Mon Aug 13, 2007 9:44 am    Post subject: Reply with quote

Kevinnn wrote:
Just an example.


ya i know ><
Back to top
View user's profile Send private message
malfunction
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Jan 2007
Posts: 1015
Location: http://www.behindthecorner.com/

PostPosted: Mon Aug 13, 2007 10:41 am    Post subject: Reply with quote

btw kevinnn when r u releasing ur webbrowser ><
_________________
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Mon Aug 13, 2007 12:21 pm    Post subject: Reply with quote

yeah i remember i said i would release it, but i realized that there is so many already and no one would probably use it. But if you want i can give it to you.
Back to top
View user's profile Send private message MSN Messenger
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