Hi Niraj,
I used the following code to upload a file in IE,
#include <IE.au3>
; Internet Explorer is partly integrated in shell.application
$oShell = ObjCreate("shell.application") ; Get the Windows Shell Object
$oShellWindows=$oShell.windows ; Get the collection of open shell Windows
$MyIExplorer=""
for $Window in $oShellWindows ; Count all existing shell windows
; Note: Internet Explorer appends a slash to the URL in it's window name
if StringInStr($Window.LocationURL,"http://") then
$MyIExplorer=$Window
exitloop
endif
next
$oForm = _IEGetObjByName ($MyIExplorer, "UploadedFile")
_IEAction($oForm, "click")
WinActivate("Choose file");
Local $file = "D:\IMP\test.pdf"
ControlSetText("Choose file", "", "Edit1", $file )
ControlClick("Choose file", "", "Button2")
But it is just selected the 'choose file' window,browses the path(D:\IMP\) and stopped.
Can you please tell me whats wrong here.