Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 ??

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...