skyinthesea Posted May 1, 2012 Posted May 1, 2012 (edited) Hi,I'm looking to 'send' to an 'input box' although I am a little confused. This is the source code taken from the webpage.<tr><td bgcolor='#ffffee'><b>Your name</b></td><td bgcolor='#ffffee'><input type='text' size=30 maxlength=30 name='name'></td><tr><tr><td bgcolor='#ffffee'><b>Your contact number<b></td><td bgcolor='#ffffee'><input type='text' size=30 maxlength=30 name='phone number'></td><tr>Let's say I'm trying to fill in the 'Your name' field, which as the source code has named it 'name'.I was hoping for some hints as to how I can improve the script :/ There are lots of input boxes on the page.In this example I simply want to send "JOHN SMITH" to the field.I tried the following code:$oButtons = _IETagNameGetCollection ($oIE, "input") For $oButton In $oButtons If $oButton.name = "name" Then ControlSend($oButton, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "JOHN SMITH") Else EndIf NextThanks to anyone who can help me out! Edited May 1, 2012 by skyinthesea
skyinthesea Posted May 2, 2012 Author Posted May 2, 2012 I tried changing $oButton.name to value but I still am yet to produce any results.. I can't see whats going wrong with my code
puttwill Posted May 13, 2015 Posted May 13, 2015 I know it's WAY late but i think i see the issue in your code. You have it as buttons 2 times and button 2 times.
jguinch Posted May 13, 2015 Posted May 13, 2015 Maybe something like this :$oInput = _IEGetObjByName($oIE, "name") $oInput.value = "blabla" Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now