سؤال للأخوة الأعزاء
لو ممكن البحث عن صورة فى التجميعة من خلال input بحيث تظهر نتيجة البحث فى dialog
لو ممكن البحث عن صورة فى التجميعة من خلال input بحيث تظهر نتيجة البحث فى dialog
ala = 0 ;
serch = Input.GetText("Input1") ;
images = File.Find("AutoPlay\\Images", "*.*", true, true);
if (images) then
for i,n in pairs(images) do
name = String.SplitPath(n).Filename;
if name == serch then
Dialog.Message("elhadi", "Yes the image [[ "..serch.." ]] is exists " );
Image.Load("Image1", n); ala = 1 ; break
end
end
end
if ala == 0 then
Dialog.Message("elhadi", "No the image [[ "..serch.." ]] is not exists " );
Image.Load("Image1", "AutoPlay\\Images\\A-002.png"); ala = 1 ;
end
File.Open(n, "", SW_SHOWNORMAL);
تعليق