I would like to intercept keystrokes which go to Internet Explorer.
We use a 3rd party vendor website program, which is an IE-only website.
My first idea was to automate the website a little, and I found the WatiN
) can do that nicely (with a few modifications). It can attach to IE, examine the DOM, click any item I want it to click, and enter text in any field I want it to enter text in.
however is really designed to be an automated website testing program. It's not designed to be interactive with user input. It's designed to emulate user input.
My next idea is to gain more control over what the user enters. For example, one field we want the user to enter only uppercase letters; however, the vendor's wesite accepts lowercase letters as well. This causes us problems later on if the user enters lowercase letters. It would be nice if I could create a browser wrapper program which intercepts the keystrokes and converts any lowercase letters to uppercase letters just for that field on that one page that field is on.
I'm not sure if I can extend WatiN
to also intercept keystroke events from the user going to IE.
Another idea I have is to create a simple Window Forms project which has the IE browser control in it, and have the user use that instead of regular IE. I'm not sure if that would give me the abilities I desire. I'm not familiar with the IE browser control.
Another idea is to create a BHO (Browser Helper Object) for IE. But I've read many negative things about those it doesn't seem like a good idea.
So I'm asking for suggestions on what would be a good direction to go with this project.