tblDropList = ListBoxEx.GetDroppedFiles("Plugin1", true);--get table of file paths tsel = ComboBox.GetSelected("ComboBox1")-- get item selected NewWidth = tonumber(Input.GetText("Input1"))-- get Width MaxHeight = tonumber(Input.GetText("Input2"))-- get max height Format = ComboBox.GetItemText("ComboBox1", tsel)-- get Txt ( format) if CheckBox.GetChecked("CheckBox1") then-- if true only resize if winder OnlyResizeIfWider = 1; else OnlyResizeIfWider = 0; end if (tblDropList ~= nil ) then-- if tbl paths then for j, file_path in pairs(tblDropList) do sptl = String.SplitPath(file_path); new =String.Replace(file_path, sptl.Filename..sptl.Extension, sptl.Filename.."."..Format, false);-- create new name-extension in the path DLL.CallFunction("AutoPlay\\Docs\\ImageConvertResize.dll", "ResizeConvertImage", "\""..file_path.."\",\""..new.."\","..NewWidth..","..MaxHeight..","..Format..","..OnlyResizeIfWider, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);-- dll call end end