About auto submit on site.

Add-in Express™ Support Service
That's what is more important than anything else

About auto submit on site.
 
jolly




Posts: 14
Joined: 2016-04-28
Dear Add-In Express Team.


We're trying to enter the user's ID and password into field of the site and process login automatically.
After entering ID and password, we will create a click event and enter key event on ID or password field because of differences in login processing method of the sites.
I'm concerned about the ways to create the click event on the specific HTMLInputElement and send an enter key event.
Posted 21 May, 2016 09:31:32 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello,

mshtml.HTMLInputElement provides the click() method.


Andrei Smolin
Add-in Express Team Leader
Posted 24 May, 2016 02:13:19 Top
jolly




Posts: 14
Joined: 2016-04-28
"Click" I mentioned above means "mouse click".
I'm concerned about the ways to send the mouse click event on the specific HTMLInputElement
and send an keyboard Enter key event.
Posted 24 May, 2016 03:52:32 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
mshtml.IHTMLElement elem = this.HTMLDocument.getElementById("Name");
if (elem is mshtml.HTMLInputElement) {
    mshtml.HTMLInputElement input = elem as mshtml.HTMLInputElement;
    input.click();
}


Is this what you are looking for?


Andrei Smolin
Add-in Express Team Leader
Posted 24 May, 2016 05:01:46 Top