KintaRo Posted April 17, 2010 Share Posted April 17, 2010 Tüm checkboxlar nasıl seçilir? Tüm seçim nasıl kadırılır? Checkboxlı AIO nasıl yapılır? gibi soruların çok sık gelmesi üzerine bir örnek hazırladım. Bu örnekte kullanılan fonksiyonlar: <i>- Tümünü seçme - Seçimi Kaldırma - Seçimi Tersine çevirme - Önerilenleri seçtirme - Klavye tuşları ile etkileşim - Checkbox açıklamaları</i> Ekran görüntüsü: Proje dosyası: http://www.mediafire.com/?0jk75h1s7saj45g[/CODE] Quote Link to comment Share on other sites More sharing options...
bilalozkan7 Posted April 17, 2010 Share Posted April 17, 2010 Katılımsız destek te büyük bir adım attın gerçekten Quote Link to comment Share on other sites More sharing options...
casira Posted April 21, 2010 Share Posted April 21, 2010 Kintaro bir sorum olacak burası ile ilgili. Projenin Page 1 e ait On Key evresinde if e_Key == 83 then -- eğer S tuşunu basılırsa tümünü seç CheckBox.SetChecked("CheckBox1", true) CheckBox.SetChecked("CheckBox2", true) CheckBox.SetChecked("CheckBox3", true) CheckBox.SetChecked("CheckBox4", true) CheckBox.SetChecked("CheckBox5", true) CheckBox.SetChecked("CheckBox6", true) CheckBox.SetChecked("CheckBox7", true) CheckBox.SetChecked("CheckBox8", true) CheckBox.SetChecked("CheckBox9", true) CheckBox.SetChecked("CheckBox10", true) end if e_Key == 75 then -- eğer K tuşuna basılırsa tüm seçimi kaldır CheckBox.SetChecked("CheckBox1", false) CheckBox.SetChecked("CheckBox2", false) CheckBox.SetChecked("CheckBox3", false) CheckBox.SetChecked("CheckBox4", false) CheckBox.SetChecked("CheckBox5", false) CheckBox.SetChecked("CheckBox6", false) CheckBox.SetChecked("CheckBox7", false) CheckBox.SetChecked("CheckBox8", false) CheckBox.SetChecked("CheckBox9", false) CheckBox.SetChecked("CheckBox10", false) end Burdaki 83 ve 75 sayılarının manası nedir. Birde projeye bir dialog ekledik bu dialog 3 saniye göründükten sonra page1 açılacak bunu nasıl yaparız. Quote Link to comment Share on other sites More sharing options...
sPYcas1 Posted April 21, 2010 Share Posted April 21, 2010 eline sağlık gerçekden güzel çalışma... Quote Link to comment Share on other sites More sharing options...
MostWanted Posted April 21, 2010 Share Posted April 21, 2010 (edited) Ordaki 75 ile 83 onun virtual kodudur.System.IsKeyDown fonksiyonundan hangi tuşların hangi sayıya karşılık geldiğini bulabilirsin.(Mesela 13 "Enter" tuşunun karşılığı.) Dialog olayı için başlangıçta dialogun açılmasını sağladıysan eğer diaolun on show kısmına ; Application.Sleep(3000) DialogEx.Close() yapabilirsin.. Edited April 21, 2010 by talha_252 Quote Link to comment Share on other sites More sharing options...
sPYcas1 Posted April 21, 2010 Share Posted April 21, 2010 arkadaşlar bu AIO'da S ve K Tuşlarına basıldıgında hiçbirşey olmuyor.. galiba bir sorun war... Quote Link to comment Share on other sites More sharing options...
casira Posted April 21, 2010 Share Posted April 21, 2010 Evet yardım sayfasında bütün tuşların karşılığı olan rakam ve sayı harf,mevcut.Dialog olayınıda hallettim.Teşekkürler. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted April 21, 2010 Author Share Posted April 21, 2010 arkadaşlar bu AIO'da S ve K Tuşlarına basıldıgında hiçbirşey olmuyor.. galiba bir sorun war... Pojeyi çalıştırınca S tuşuna basınca tüm checkboxları seçili hale getirir, K tuşuna basınca tüm checkboxların seçimlerini kaldırır ve çalışıyor... Quote Link to comment Share on other sites More sharing options...
casira Posted April 23, 2010 Share Posted April 23, 2010 (edited) Peki Kintaro S tuşuna basıp seçtiriyoruz bir daha S tuşuna basınca kaldırmak olmazmı yani K tuşunu kullanmadan sayfadaki mesela 6 adet checkbox var bunları S tuşuna ilk bastığımızda seçecek ikinci bastığımızda iptal edecek böyle olabilirmi? EDİT: ÇÖZÜM Sayfaya checkboxları yerleştirdik ardından sayfanın On Show evresine checkboxlar_secili_olmasin = false; On Key evresine if e_Key == 83 then for bak = 1, 100 do CheckBox.SetChecked("CheckBox" .. bak, checkboxlar_secili_olmasin); end if checkboxlar_secili_olmasin == false then checkboxlar_secili_olmasin = true; else checkboxlar_secili_olmasin = false; end end kodlarını yazıyoruz.Buradaki 83 S tuşununu virtual key code karışılığı oluyor. Sonra sayfayı önizleme yapınca S tuşuna ilk basınca tüm checkboxlar seçiliyor bir daha S tuşuna basınca iptal oluyor. Edited April 23, 2010 by recep demirci Quote Link to comment Share on other sites More sharing options...
KintaRo Posted April 23, 2010 Author Share Posted April 23, 2010 Soruda senden çözümde helal :-) Yakında bizlere iş kalmayacak Quote Link to comment Share on other sites More sharing options...
SoundMax Posted May 20, 2010 Share Posted May 20, 2010 peki istedigimiz bir harfın virtual keyini nasıl bilicez ? ve bu tumunu degilde istedigimiz checkboxları tus aracılıgı ile seçmek istersek nasıl yapabiliriz ? Quote Link to comment Share on other sites More sharing options...
casira Posted May 20, 2010 Share Posted May 20, 2010 (edited) peki istedigimiz bir harfın virtual keyini nasıl bilicez ? ve bu tumunu degilde istedigimiz checkboxları tus aracılıgı ile seçmek istersek nasıl yapabiliriz ? Resimdeki gibi help dosyasında dizin bölümünde virtual key codes diye yazıp aratırsanız kodlar karşınıza çıkar. Diğer soruya gelirsek mesela projenizde 6 adet CheckBox var siz bunlardan Checkbox2,Checkbox3,Checkbox5, yani 3 tanesini A tuşuyla seçmek istiyorsunuz bu durumda if e_Key == 65 then -- eğer A tuşunu seçersem aşağıdakileri seç (buradaki A nın karşılığı virtual key code olarak 65tir.) CheckBox.SetChecked("CheckBox2", true) CheckBox.SetChecked("CheckBox3", true) CheckBox.SetChecked("CheckBox5", true) end Edited May 20, 2010 by recep demirci Quote Link to comment Share on other sites More sharing options...
kamuran731 Posted June 30, 2010 Share Posted June 30, 2010 Güzel Çalışma ama yükle deyince bütün programları bir anda yüklüyor Birinin yüklemesi bitmedn diğerine geçmemesi için ne yapabiliriz Quote Link to comment Share on other sites More sharing options...
MostWanted Posted June 30, 2010 Share Posted June 30, 2010 file.Run daki en son yeri True yapacaksın... Quote Link to comment Share on other sites More sharing options...
dövücü Posted October 4, 2010 Share Posted October 4, 2010 (edited) if c1 then -- eğer 1. checkbox seçili ise -- buraya program kurulum kodu gelecek Paragraph.SetText("Paragraph1", "Winamp kurulumu tamamlandı") -- kurulum tamamlandı mesajı ver Application.Sleep(2000) --2 saniye bekle (buna normalde gerek yok sadece görüntü için...) end "-- buraya program kurulum kodu gelecek" burayı nasıl doldurcağız. Edited October 4, 2010 by dövücü Quote Link to comment Share on other sites More sharing options...
OzgrGvnc Posted October 4, 2010 Share Posted October 4, 2010 (edited) Program kurdurmak için kullandığımız standart kodu yazıyoruz. Zaten checkbox seçili değilse bir sonraki koda kendisi atlayacaktır. Birde kodda "true" yazan yere dikkat et. Eğer false olursa programın kurulumunu beklemeden bir sonraki checkboxı kontrol eder ve çalıştırır. File.Run("AutoPlay\\Docs\\Program.exe", "", "", SW_HIDE, true); Yani tamamı şöyle olacak if c1 then -- eğer 1. checkbox seçili ise File.Run("AutoPlay\\Docs\\Program.exe", "", "", SW_HIDE, true);-- buraya program kurulum kodu gelecek Paragraph.SetText("Paragraph1", "Winamp kurulumu tamamlandı") -- kurulum tamamlandı mesajı ver Application.Sleep(2000) --2 saniye bekle (buna normalde gerek yok sadece görüntü için...) end Edited October 4, 2010 by Hemoroid Quote Link to comment Share on other sites More sharing options...
dövücü Posted October 4, 2010 Share Posted October 4, 2010 yapıyorum çalıştıramıyorum.. if c1 then -- eğer 1. checkbox seçili ise File.Run("AutoPlay\\Docs\\ccsetup236.exe", "", "", SW_SHOWNORMAL, true);-- buraya program kurulum kodu gelecek Paragraph.SetText("Paragraph1", "Winamp kurulumu tamamlandı") -- kurulum tamamlandı mesajı ver Application.Sleep(2000) --2 saniye bekle (buna normalde gerek yok sadece görüntü için...) end böyle yaptım çalışmadı. Quote Link to comment Share on other sites More sharing options...
OzgrGvnc Posted October 4, 2010 Share Posted October 4, 2010 CheckBoxlar için c1 = CheckBox.GetChecked("CheckBox1") c2 = CheckBox.GetChecked("CheckBox2") Gibi tanımlamalar yapmışmıydın? Quote Link to comment Share on other sites More sharing options...
dövücü Posted October 4, 2010 Share Posted October 4, 2010 winrar checkbox unun script-one clip kısmınamı yazacağız c1 = CheckBox.GetChecked("CheckBox1") bunu Quote Link to comment Share on other sites More sharing options...
OzgrGvnc Posted October 4, 2010 Share Posted October 4, 2010 (edited) Kur butonunun on click kısmına önce checkboxları tanımlıyoruz. c1 = CheckBox.GetChecked("CheckBox1") -- Gibi alt alta tüm Checkboxları yazıyoruz Ardından kurulum kodlarına giriyoruz if c1 then -- eğer 1. checkbox seçili ise File.Run("AutoPlay\\Docs\\ccsetup236.exe", "", "", SW_SHOWNORMAL, true);-- buraya program kurulum kodu gelecek Paragraph.SetText("Paragraph1", "Winamp kurulumu tamamlandı") -- kurulum tamamlandı mesajı ver Application.Sleep(2000) --2 saniye bekle (buna normalde gerek yok sadece görüntü için...) end Bitmiş hali böyle olacak c1 = CheckBox.GetChecked("CheckBox1") -- 1. checkboxun seçili olup olmadığına bak c2 = CheckBox.GetChecked("CheckBox2") -- 2. checkboxun seçili olup olmadığına bak if c1 then -- eğer 1. checkbox seçili ise -- buraya program kurulum kodu gelecek Paragraph.SetText("Paragraph1", "Winamp kurulumu tamamlandı") -- kurulum tamamlandı mesajı ver Application.Sleep(2000) --2 saniye bekle (buna normalde gerek yok sadece görüntü için...) end if c2 then -- eğer 2. checkbox seçili ise -- buraya program kurulum kodu gelecek Paragraph.SetText("Paragraph1", "Winzip kurulumu tamamlandı") -- kurulum tamamlandı mesajı ver Application.Sleep(2000) --2 saniye bekle (buna normalde gerek yok sadece görüntü için...) end Edited October 4, 2010 by Hemoroid Quote Link to comment Share on other sites More sharing options...
dövücü Posted October 4, 2010 Share Posted October 4, 2010 yaptım olmadı Quote Link to comment Share on other sites More sharing options...
OzgrGvnc Posted October 4, 2010 Share Posted October 4, 2010 Dostum başta KintaRonun verdiği apz dosyasını indirip bir bak istersen. Kur butonunda bahsettiğim kodlar zaten var. Ben oradan kontrol edip deniyorum ve çalışıyor. Senin problemin başka yerde olmasın sakın? İstersen TW ile bağlanıp bakayım. PM at ID ve Pass. Quote Link to comment Share on other sites More sharing options...
dövücü Posted October 4, 2010 Share Posted October 4, 2010 pm attım baksana Quote Link to comment Share on other sites More sharing options...
KintaRo Posted October 4, 2010 Author Share Posted October 4, 2010 ne olmuş burda ya kodların hepsinin yanına açıklama yazmama rağmen yapamayan arkadaşlar var. Örnek çalışmalardaki örnekleri indirip kodlarına göz atın arkadaşlar, ne nerede ne için kullanılmış kavramaya çalışın, değer, değişken, operator, tablo, döngü bunlar içinde yakında ders hazırlamayı düşünüyorum. Yalnız zaten sitede de görsel dersler var neden onları incelemiyorsunuz ki? Arkadaşlar ne güzel anlatmışlar. Lütfen biraz araştırıp zaman ayırın. Quote Link to comment Share on other sites More sharing options...
OzgrGvnc Posted October 4, 2010 Share Posted October 4, 2010 Ben bağlandım baktım. Arkadaş TR yamalı versyon kullanıyor. Kodlarda sıkıntı yok ama kurulum yapılmıyor. Yamadandır dedim Orj link verdim. İndirdi denedi olmadı dedi Bidaha bağlanmaya zamanım olmadı henüz. Müsait olunca yoklarım 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.