webwiz_dk Posted July 19, 2005 Posted July 19, 2005 I have run into a problem that is driving me crazy. Object : I have to send data to a homepage that does not have a webservice to recive XML files but only a normal homepage were users can input their data in the normal way. Since i have alle the data in XML i have build a small program that simulates the user on the webpage. This is NOT done with sendkeys but by using the mshtml / axInterop.SHDocvw. This all works fine but now they have changed a way to registrate some of the data. Now the user has to Click in a table cell (<TD>) and at the same time hold the CTRL key down. The click part is no problem, it is done like this : Dim All As mshtml.IHTMLElementCollection = doc.getElementsByTagName("TD") Dim Elm As mshtml.IHTMLElement Dim total As String For Each Elm In All If Elm.id = "tdB_1_A_1" Then 'Click control Elm.click() End If Next It activates the click but the following code on the homepage prevents the click from beeing registrated : if (event.ctrlkey) { "Some code" } Is there anyway from vb.net to activate this event so that the click registrates ?? Quote
Recommended Posts