Jump to content
Sign in to follow this  

Set value of input box in IE7

Recommended Posts


Hello everyone :P

I've got this script:


$oIE = _IECreate ("http://wis/en/wwp/Zen%20sor%20ed/xD%20^^%20:P.aspx")
sleep (2000)
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 1)
_IEFormElementSetValue ($oQuery, "wih")
_IEFormSubmit ($oForm)

;<td align="Left" valign="Middle"><img src="../../../Program Files/Common Files/Microsoft Shared/Web Server Extensions/60/Template/1031/STS/doctemp/smartpgs/_layouts/images/magnify.gif" alt="" border="0" /></td><td align="Center" valign="Middle"><input name="FullPage:g_fea2d5bf_eb2f_462c_b73c_7ba7c0cecd05:_ctl0:ctlSearch:txtSearchString" type="text" maxlength="25" id="FullPage_g_fea2d5bf_eb2f_462c_b73c_7ba7c0cecd05__ctl0_ctlSearch_txtSearchString" class="ms-searchbox" /></td><td align="Right" valign="Middle"><input type="image" name="FullPage:g_fea2d5bf_eb2f_462c_b73c_7ba7c0cecd05:_ctl0:ctlSearch:btnSearch" id="FullPage_g_fea2d5bf_eb2f_462c_b73c_7ba7c0cecd05__ctl0_ctlSearch_btnSearch" src="../../../Program Files/Common Files/Microsoft Shared/Web Server Extensions/60/Template/1031/STS/doctemp/smartpgs/_layouts/images/GOSEARCH.GIF" alt="" border="0" /></td>

The comment is the line of the source code.

i want the script to set the value to "wih".

after that it has to push the button "GOSEARCH.gif".

Is that possible with IE7?



Edited by Vaeb

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this