Champak Posted January 27, 2009 Share Posted January 27, 2009 I am trying to attach a file in a web based mail site. The regular way is to click the "browse" button and open a dialog to select the file to attach. However, I don't want to do this, because everything is suppose to happen in the background. So what I tried to do is set the file path in the input box with _IEFormElementSetValue(), but doing that gives me the error "--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidObjectType (Browser securuty prevents SetValue of TYPE=FILE)". So I'm wondering if there is another way of doing this, workaround. NOTE that I am able to type the path in the input box if that helps with alternative ideas. Link to comment Share on other sites More sharing options...
DaleHohm Posted January 27, 2009 Share Posted January 27, 2009 Please look at the examples for _IEFormElementSetValue() 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...
Champak Posted January 29, 2009 Author Share Posted January 29, 2009 Thanks 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