webBrowser ALT+S

J

jrshedden

Hi,

I'm porting an application from VB 6 to C# compact framework 2.0 on an
iPAQ. I'm using the webBrowser to load a login page from a target
system and I see the page fine and can fill out the userID and
password.

The older application focused on the browser then used SendKeys to
provide it an ALT+S. The password and userid was then sent to the host
and login was accomplished. I can repeat this same behavior on the PC
using Internet Explorer alone with no custom code at all.

When I run on the iPAQ, I set focus, but there is no response from the
webBrowser component to the ALT+S and nothing goes back to the host.
(Please note that I've incorporated the SendKeys function from
OpenNetCF, but the webBrowser is the one provided by the compact
framework).

I haven't seen any hotkeys defined for IE as ALT+S. I don't see
anything defined in the HTML login page (unless I missed something).
I'm not super HTML literate at this time. Can anyone tell me what to
look into?

Thanks in Advance!
jrshedden
 
J

jrshedden

Alex said:
So, what's this ALT+S supposed to do?

Hi Alex,

Thanks for the reply. Here is a snippet of the HTML code on the login
page the browser is displaying:

<!--
******************************************************************************
-->

<input class="SUB" type="button" accesskey="S"
onclick="enbtn('')"></input>



<input type="hidden" name="JTRS_HMI_CommandType"
id="JTRS_HMI_CommandType" value="JTR_AUTHENTICATEUSER"><!-- {Command to
HMI Services} -->

<!--
******************************************************************************
-->

I assume that when you hit ALT+S it is an 'accesibility' feature of the
browser to run some code that parses the input fields and sends them
back to the host computer. A collegue explained to me that although
the button is 'S' on a Windows machine you send ALT+S and on Mac you
would send the Mac Key+S. Sorry I can't tell you more, I'm learning as
I type. The version of HTML is 4.01.

I can't reprogram the server to accomodate the iPAQ.

It may be that the browser component doesn't have the ability to
understand the ALT+S. I can't click the button, because it doesn't
appear. I can't try it in pocketIE because I don't see a way to send
and ALT+S from the soft input panel.

Regards,
Jim Shedden
 
A

Alex Yakhnin

Right, neither WebBrowser control nor PIE support that.

The only solution would be to modify the server pages to be more PPC
friendly.
 
J

jrshedden

Alex said:
Right, neither WebBrowser control nor PIE support that.

The only solution would be to modify the server pages to be more PPC
friendly.

Hi Alex,

I will have difficulty programming on the server side, it is not our
unit. I have sent queries on other browsers to their support staff.
Although they are not components (Netfront and Thunderhawk), maybe I
can 'Interop' them if they have interfaces. I've also called in one of
my MSDN support incidents on this, as maybe they have run into this.

I am also thinking of 'screen scraping' the CF2 webBrowser component,
as you can pull the HTML text. Now we may be going outside budget and
schedule though.

If I get any brilliant, workable solutions, I will add them to the
thread.

Thanks for your time.

Regards,
Jim Shedden
 
G

Guest

Hi Jim,

I am in a similar position and will need to send an ALT+S to submit a page
on my Pocket PC IE. This page is a jsp/struts page and so I dont really have
control over changing the way it is done. Were you able to find a solution?

Also you mentioned 'screen scraping'. DId you get anything out of it. If you
could let me know how I can submit the page by 'screen scraping' at least it
would still work for me though your initial idea is what I am also looking
for.

Please let me know what you have found out.

Narasimham
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top