#include <IE.au3>
#include <GUIConstants.au3>
#Include <WinAPIEx.au3>
#include <Process.au3>
$sCommand="RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2";Очистка куков
_RunDos($sCommand)
$oIE = _IECreate("https://www.avito.ru/additem")
$oForm = _IEFormGetCollection($oIE, 0)
global $oImageUp = _IEFormElementGetObjByName($oForm, 'image')
_IEAction ($oImageUp, "focus")
Sleep(500)
_Button($oIE, 'image')
Func _Button(ByRef $_Obj, $s_Name)
Sleep(250)
$_Obj.document.parentWindow.execScript("setTimeout(function(){document."& $s_Name &"[18].click()},1)")
Sleep(250)
Send("D:\Путь к файлу\m122.jpg")
;Send('{enter}')
EndFunc ;==>_Button