BreadthFirst Posted July 8, 2009 Share Posted July 8, 2009 Something weird is going on with my internet explorer. I am running the example included in the IE.au3 UDF to write to an Input type = file element: ; ******************************************************* ; Example 4 - Set the value of an INPUT TYPE=FILE element ; (security restrictions prevent using _IEFormElementSetValue) ; ******************************************************* ; #include <IE.au3> $oIE = _IE_Example("form") $oForm = _IEFormGetObjByName($oIE, "ExampleForm") $oInputFile = _IEFormElementGetObjByName($oForm, "fileExample") ; Assign input focus to the field and then send the text string _IEAction($oInputFile, "focus") Send("C:\myfile.txt") However, this program is simply writing "C:myfile.txt" to internet explorer's URL bar instead of the fileExample input. Why is this happening and how can I solve this issue? I have internet explorer 8. thanks. Link to comment Share on other sites More sharing options...
A. Percy Posted July 8, 2009 Share Posted July 8, 2009 (edited) I tried here and it's working... Edit: hmmm, in my brother's computer it's happening... I'll investigate. Edited July 8, 2009 by A. Percy Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
A. Percy Posted July 8, 2009 Share Posted July 8, 2009 Interesting... It's disabled. Only works when I click the button. Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator VW Bug user Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral Link to comment Share on other sites More sharing options...
dantay9 Posted July 8, 2009 Share Posted July 8, 2009 (edited) I got this error when I used _IEFormElementSetValue: --> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidObjectType (Browser securuty prevents SetValue of TYPE=FILE) Maybe you can't send characters to the control either. Just a guess. Edited July 8, 2009 by dantay9 Link to comment Share on other sites More sharing options...
BreadthFirst Posted July 8, 2009 Author Share Posted July 8, 2009 I got this error when I used _IEFormElementSetValue:--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidObjectType (Browser securuty prevents SetValue of TYPE=FILE)Maybe you can't send characters to the control either. Just a guess.Example 4 - Set the value of an INPUT TYPE=FILE element (security restrictions prevent using _IEFormElementSetValue)That's not supposed to work. The example I posted, however, is. I don't know why it fails on some computers, as A. Percy pointed out. What version of internet explorer do you have on the computer where the program fails? 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