Jump to content

Mp3 Player Karısık Cal Ve Tekrar Et ?


HaulTime
 Share

Recommended Posts

. Global Fonksiyona :

Tekrarla = false;
Karistir = false;

function K_T (...)
local count = ListBox.GetCount("ListBox1");
  if (count ~= 0) then
    
    if (Karistir) then
    sIndex = math.random(1, count);
    end
    
    if (Tekrarla) then
    sIndex = sIndex;
    end
    
    if (not Karistir and not Tekrarla) then
      if (sIndex == count) then
      sIndex = 1;
      else
      sIndex = sIndex + 1;
      end
    end  
   
  ListBox.SelectItem("ListBox1", sIndex);
  PlayMusic (ListBox.GetItemData("ListBox1", sIndex)); 
  end
end

. Tekrarla CheckBox On Click :

if ( CheckBox.GetChecked(this) ) then
Tekrarla = true;
else
Tekrarla = false;
end

. Karistir CheckBox On Click :

if ( CheckBox.GetChecked(this) ) then
Karistir = true;
else
Karistir = false;
end

. İleri Butonu On Clik :

K_T ()

. ListBox On Double Click :

sIndex = ListBox.GetSelectedItem("ListBox1");
Edited by milano88
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...