El-Arabi Posted February 26, 2012 Share Posted February 26, 2012 (edited) Listboxtan seçtiğim verinin durmunda sadece bir tanesini gösteriyor iki sinide göstermek istiyorum Örn:services.msc den bir servisin durumunu ve çalışma şeklini alıyorum ama sadece durumunu yazdırıyor.Verilerin alınıp alınmadıgını kontrol ettim dogru geliyor. Edited February 27, 2012 by El-Arabi Quote Link to comment Share on other sites More sharing options...
KintaRo Posted February 27, 2012 Share Posted February 27, 2012 Registry'den dönen değerler string'dir siz number kullanmışsınız. ListBox OnDoubleClick evresindeki kodları şunlarla değiştirin: [codebox]sec = ListBox.GetSelected("ListBox1"); item = ListBox.GetItemData("ListBox1", sec[1]); result = Service.Query("", item); if result == 1 then calisma = "Durdurulmuş"; elseif result == 4 then calisma = "Çalışıyor"; elseif result == 7 then calisma = "Duraklatılmış"; end start = Registry.GetValue(HKEY_LOCAL_MACHINE,"SYSTEM\\CurrentControlSet\\Services\\"..item, "Start", true); if start == "1" then baslangic = "Sistem"; elseif start == "2" then baslangic = "Otomatik"; elseif start == "3" then baslangic = "Elle"; elseif start == "4" then baslangic = "Devre Dışı"; end Paragraph.SetText("Paragraph1", "Çalışma Durumu : "..calisma.."\r\n".."Sistem Durumu :"..baslangic); [/codebox] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.