Lenart Posted June 16, 2008 Share Posted June 16, 2008 Greetings, Sorry in advance if i m posting in wrong place I would like to populate TextBox to 'XYZ' text followed by submission of the form. i am using following line of code CODE$oIE = _IECreate("www.Virustotal.com") $oSend = _IEFormGetObjByName ($oIE, "consulta") $oQuery = _IEFormElementGetObjByName ($oIE, "archivo") _IEFormElementSetValue ($oQuery,"Bingo") But the problem is i cannot use '_IEFormElementGetObjByName' Where INPUT TYPE=FILE,as mention in the help file. i am unable to found any other way round to set the value in text box. Now, i tried this thing also CODE$oSend = _IEGetObjByName ($oIE, "archivo") _IEAction ($oSend, "focus") Send($line) Actually i am working on multiple tabs. This thing is working on first page but, if i create second tab and open 'virustotal.com' the focus is not coming on the text box. source code for the text box is as follows: CODE<p class="elemento-form"><input name="archivo" type="file" size="42" /></p Please help me as this thing is getting on my head. Thanks in advance Lenart Brave Link to comment Share on other sites More sharing options...
DaleHohm Posted June 16, 2008 Share Posted June 16, 2008 CODE$oIE = _IECreate("www.Virustotal.com")$oSend = _IEFormGetObjByName ($oIE, "consulta")$oQuery = _IEFormElementGetObjByName ($oIE, "archivo")_IEFormElementSetValue ($oQuery,"Bingo")But the problem is i cannot use '_IEFormElementGetObjByName' Where INPUT TYPE=FILE,as mention in the help file. i am unable to found any other way round to set the value in text box.Actually, it is _IEFormElementSetValue that has the restrictionNow, i tried this thing alsoCODE$oSend = _IEGetObjByName ($oIE, "archivo")_IEAction ($oSend, "focus")Send($line)goodActually i am working on multiple tabs. This thing is working on first page but, if i create second tab and open 'virustotal.com' the focus is not coming on the text box.source code for the text box is as follows:CODE<p class="elemento-form"><input name="archivo" type="file" size="42" /></pUsing this method, you must insure that the second tab is in view since you must simulate mouse clicks to it. What output is sent to the SciTe console?Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble 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