I have a VB executable that goes to a bunch of URLs (see code below)
and I want to use grease monkey to execute some javascript on the
page.  My script works fine when I navigate to the URLs manually but
how can I get it to work via my VB program?

       Try
            _webRequest = WebRequest.Create(_url)

            _webRequest.CookieContainer = _cookies
            Dim responseReader As New
StreamReader(_webRequest.GetResponse().GetResponseStream())

            Dim responseData As String = responseReader.ReadToEnd()
            responseReader.Close()

            Dim _sw As New StreamWriter(_outputFilePath & _title &
_fileCounter & ".html", False)
            _sw.Write(responseData)
            _sw.Close()

            Console.WriteLine("Read Successful : File written : " &
_outputFilePath & _title & _fileCounter)

        Catch ex As Exception
            Console.WriteLine("Error reading Url " + _url)
            Console.WriteLine("ERROR STACK:")
            Console.WriteLine(ex.ToString())
            Throw ex
        End Try

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to