﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2521	_IEFormElementSetValue[5].au3	mlipok	Jpm	"now in 3.3.9.22 

{{{
; Clicking in <input type=""file"" name=""fileExample"">

#include <IE.au3>
#include <MsgBoxConstants.au3>

Local $oIE = _IE_Example(""form"")

Local $oForm = _IEFormGetObjByName($oIE, ""ExampleForm"")
Local $oInputFile = _IEFormElementGetObjByName($oForm, ""fileExample"")

; Assign input focus to the field and then send the text string
_IEAction($oInputFile, ""focus"")

; Get a handle to the IE window.
Local $hIE = _IEPropertyGet($oIE, ""hwnd"")

#region  The first method
Local $iFileX = _IEPropertyGet($oInputFile, ""screenx"")
Local $iFileY = _IEPropertyGet($oInputFile, ""screeny"")
MouseClick('main', $iFileX + 160, $iFileY + 5, 1, 0)
#endregion  The first method

#region The second way
;~ SendKeepActive($hIE, """")
;~ Send(""{TAB}"")
;~ Sleep(100)
;~ Send(""{SPACE}"")
;~ SendKeepActive("""")
#endregion The second way


MsgBox($MB_SYSTEMMODAL, ""Success"", ""Value set to 'This works'"")

}}}


proposal on reflection:

Remove:
{{{
MsgBox($MB_SYSTEMMODAL, ""Success"", ""Value set to 'This works'"")

}}}


Add comments something like this
{{{
Now you can use the Send() or ControlSetText() to set the value of the FileName field in the resulting window, type: FileOpenDialog.
}}}"	Feature Request	closed	3.3.9.22	Documentation		None	Fixed		
