Vaeb Posted December 5, 2007 Share Posted December 5, 2007 Hello I've got this script: #include<IE.au3> $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? Greets Vaeb I <3 it:http://www.autoitscript.com/forum/index.php?showtopic=69912http://www.autoitscript.com/forum/index.php?showtopic=69914http://www.autoitscript.com/forum/index.php?showtopic=69911 Link to comment Share on other sites More sharing options...
BrettF Posted December 5, 2007 Share Posted December 5, 2007 Hello I've got this script: #include<IE.au3> $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></span> 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? Greets Vaeb Ok... Lets see. If we could have the site, that would be kind of helpful. meh. Does this example work for you? #include <IE.au3> $oIE = _IECreate ("http://www.google.com") $oForm = _IEFormGetCollection ($oIE, 0) $oQuery = _IEFormElementGetCollection ($oForm, 1) _IEFormElementSetValue ($oQuery, "AutoIt IE.au3") _IEFormSubmit ($oForm) Also have a look at this example: Might help you? #include <IE.au3> $oIE = _IECreate ("http://www.google.com") $oForm = _IEFormGetObjByName ($oIE, "f") $oQuery = _IEFormElementGetObjByName ($oForm, "q") _IEFormElementSetValue ($oQuery, "AutoIt IE.au3") _IEFormSubmit ($oForm) Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
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