Jump to content
Sign in to follow this  

InputFile won't work on IE 8

Recommended Posts


I'm trying to have picture uploaded to facebook

but even the example won't work

#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")

I have found this code for IE 8 but I can't understand it

$ie.Navigate("file: ///L:/miniedit_tst3.htm")
Sleep(1024)  ;wait for full load 

Func inputfile($id,$filename)
   $ie.Navigate("javascript: document.getElementById('"& $id &"').click();")
   Sleep(1024) ;wait depend of computer's speed 
   ;Sleep(1024)  ;wait only for user see the filename sended

How can i upload pic to facebook (http://facebook.com/editpicture.php)

using IE 8 i have win 7 can't get IE 7

please help :mellow:

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