Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[TUT] Google and YouTube Searcher

Its Very Basic But A good tool

Open Visual Basic 2008 Express Edition.

Click on Project next to Create:

[IMG]http://i45.[censored].com/2h2mty1.jpg[/IMG]

Click on Windows Form Application, and name the project "Your name's Searcher" and then click Ok

[IMG]http://i50.[censored].com/18mdg8.jpg[/IMG]

Add a textbox and 2 buttons: Change the buttons text's to Search Google and Search Youtube

[IMG]http://i47.[censored].com/xo35ar.png[/IMG]

Now time for the coding part :D:D:D

Double click on the "Search Google" button and add the following highlighted code:

PHP Code

<?php 
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      
        Dim GoogleCode 
As String
        GoogleCode 
= TextBox1.Text

        Dim FixedGoogleCode 
As String
        FixedGoogleCode 
= GoogleCode.Replace(" ", "+")

Process.Start("iexplore", "http://www.google.com/search?hl=en&q=" + FixedGoogleCode + "&aq=f&oq=")

End Sub 

Double click on Search Youtube and add the following highlighted code:


PHP Code

<?php 
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim YouTubeCode 
As String
        YouTubeCode 
= TextBox1.Text

        Dim FixedYouTubeCode 
As String
        FixedYouTubeCode 
= YouTubeCode.Replace(" ", "+")

Process.Start("iexplore", "http://www.youtube.com/results?search_type=&search_query=" + FixedYoutubeCode + "&aq=f")

End Sub 

Now Your done.

Click on [IMG]http://img231.imageshack.us/img231/9148/debugi.jpg[/IMG] Button

and do whatever. :)
Thank you for this mate; very useful.
Thx great help d;

andrew 🤝
there is an shorter code like this one:
Process.Start("http://www.google.com/#hl=en&source=hp&q=" & TextBox2.Text)
for youtube
Process.Start("http://www.youtube.com/results?search_query=" & TextBox1.Text & "&aq=f")
put those under some buttons and see it works!
You made it harder then it really is Use the above ones.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by strangewolfDec 17, 2015 02:56 PM 4 249 Dec 17, 2015 02:56 PM
Last Post: Feanor
[Python] by szuszi2Mar 8, 2015 08:21 AM 1 146 Mar 8, 2015 08:21 AM
Last Post: herrdeutschland
[.NET] by iCumFireOct 3, 2014 05:33 AM 4 141 Oct 3, 2014 05:33 AM
Last Post: IAmNotHere