LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fill in field on internet explorer

Hi,
How can I fill in a required field in Internet Explorer? For example in a registration form?
I could set the mouse position a set a mouse click in it, but isn't there a better solution?

thanks for any help

Yves
0 Kudos
Message 1 of 6
(3,011 Views)
I think that you need to expand a little on what you are trying to do for a good answer.

I suspect the best bet would be to figure out the correct response string to post to the server directly.

e.g.
http://theserveraddr/responsepage.asp?parameter1=firstparam&parameter2=secondparamer

The above would then be sent as a string to the server concerned on port 80 using the TCP/IP support vi's
This avoids any page reformatting issues if the web pages is changed and does not require you to interact with a 'Window'
The exact response string will of course depend on the server and application.

Note
This is a simple example.
0 Kudos
Message 2 of 6
(3,000 Views)
Thanks for your answer.

Here is what I want to do:
I want to open a certain page in the webbrowser to login to my email-webaccount.
Then I want to fill in my name and password and click on "login".
I guess the "login"-click should be possible with a controlled mouse. (I have seen this in some example in other forums.)
But I couldn't find anything about filling in forms.

yves

0 Kudos
Message 3 of 6
(2,997 Views)
Well if you 'Want' to send user style events to an application then there are some tools here which I believe will do the job.
 
Select Downloads then G Toolbox for the stuff you are searching for.
 
 
For me they would be the choice of last resort, as small changes to the format or the position of elemets or window could cause problems.
 
However if you are attempting to use it on a system where you know nothing of the transactions occuring (the data being sent between, both parties) then I guess sending keypresses and mouse events might be the only option. On those occasions that I have done similar things, I have avoided mouse events where possible. Try using the TAB key to move through fields if possible and the SPACE BAR and ENTER key to press buttons as appropriate. It's annoing if your mouse ends up in strange locations on the screen and discracting. I have found applications without mouse elements tend to be more resilient to user interface modifications and window issues such as size, location, scaling or z order (if its a top most or bottom most window etc).
 
 
Message 4 of 6
(2,987 Views)
Well, thanks for your help.

Now I have tried another way.
I open the webbrowser as ActiveX-element in LV. Then I set the mouse cursor to the definite position. After this I emulate a Left Mouse Click. UNFORTUNATELY this doesn't work. Why?
Thanks für any help.
Yves
0 Kudos
Message 5 of 6
(2,969 Views)

It sounds to me like you want labview to emulate a macro program. I'm not sure it could do that very easily. I use this one.

http://www.macroexpress.com/

0 Kudos
Message 6 of 6
(2,962 Views)