konani Posted June 20, 2010 Posted June 20, 2010 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,
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