I'm unsure how to do what you are requesting (AFAIK it isn't possible unless you use VB to control Firefox somehow) but I believe that the reason it doesn't work currently is because you are completely bypassing Firefox and Greasemonkey, thus causing scripts to not be run.
On 11 Jan 2011 21:16, "Keith" <[email protected]> wrote: 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]<greasemonkey-users%[email protected]> . For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en. -- 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.
