Sign in to follow this  
Followers 0
konani

Need upload file via IE

2 posts in this topic

Hi,

I see many script to upload file via IE in this forum like:

#include <IE.au3>

$oIE = _IECreateEmbedded ()

GUICreate ("Test")

GUICtrlCreateObj ($oIE, 0, 0, 1024, 768)

GUISetState (@SW_SHOW)

_IENavigate ($oIE, "http://www.dobeash.com/test.html")

$oT = _IEGetObjById ($oIE, 'fileExample')

MouseMove (_IEPropertyGet ($oT, "screenx") + _IEPropertyGet ($oT, "width") - 10, _IEPropertyGet ($oT, "screeny") + _IEPropertyGet ($oT, "height") / 2)

MouseClick ("left")

WinWait ("Choose File to Upload")

$hChoose = WinGetHandle ("Choose File to Upload")

ControlSetText ($hChoose, "", "Edit1", "C:\AUTOEXEC.BAT")

ControlClick ($hChoose, "", "Button2")

But it don't work for me. Please help me. I use AutoIt3 and IE 8.

Thanks in advance,

Share this post


Link to post
Share on other sites



Any help please...

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  
Followers 0