SAYGINER Posted June 15, 2012 Share Posted June 15, 2012 Merhaba arkadaşlar yeni bir proje çalışması yapıyorum.Hemen herşey bitti sayılır.Fakat Kurulumlar yapıldıktan sonra bilgisayarı reset ve kapat CheckBox larını bir türlü yapamadım.Sitede birçok örnek var fakat örnekleri uygulayınca daha programlar kurulmadan bilgisayar resetliyor.Sayın KintaRo nun verdiği kodları denedim sonuç yine aynı.Seçtiğim kurulumlar bittikten sonra reset ya da kapat fonksiyonlarının çalışmasını nasıl sağlaya bilirim? Saygılar [quote name='KintaRo' date='04 January 2010 - 12:20 ' timestamp='1262596857' post='684584'] Bilgisayarı Restart et: (20 sn. içinde bilgisayarı yeniden başlatır.) [CODE]File.Run("shutdown.exe -r -f -t 20 -c Windows 20sn sonra yeniden başlayacaktır.", "", "", SW_SHOWNORMAL, true);[/CODE] Bilgisayarı Restart et: (Direk yeniden başlatır) [CODE]File.Run("shutdown.exe -r -f", "", "", SW_SHOWNORMAL, true);[/CODE] Bilgisayarı Kapat: [CODE]File.Run("shutdown.exe -s -f", "", "", SW_SHOWNORMAL, true);[/CODE] Oturumu Kapat: [CODE]File.Run("shutdown.exe -l -f", "", "", SW_SHOWNORMAL, true);[/CODE] Quote Link to comment Share on other sites More sharing options...
djonur007 Posted June 15, 2012 Share Posted June 15, 2012 Örnek olarak: [spoiler][img]http://www.tnctr.com/uploads/imgs/pre_1339751091__sshot-4.png[/img][/spoiler] [xml] bReset = RadioButton.GetChecked("RadioButton3"); bKapat = RadioButton.GetChecked("RadioButton2"); bOKapat = RadioButton.GetChecked("RadioButton1"); if (bReset == false and bKapat == false and bOKapat == false) then Dialog.Message("", "Lütfen seçim yapınız.") elseif (bReset == true) then Dialog.Message("", "Resetleme seçildi.") elseif (bKapat == true) then Dialog.Message("", "Kapatma seçildi.") elseif (bOKapat == true) then Dialog.Message("", "Otorumu Kapat seçildi.") end[/xml] Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted June 15, 2012 Share Posted June 15, 2012 [b]Kodlarını görmeden nasıl bir çözüm bulmamızı bekliyorsun ? Bari bi proje dosyası paylaş da öyle bakalım.[/b] Quote Link to comment Share on other sites More sharing options...
SAYGINER Posted June 15, 2012 Author Share Posted June 15, 2012 [quote name='Baba_' date='15 June 2012 - 21:26 ' timestamp='1339784813' post='1212378'] [b]Kodlarını görmeden nasıl bir çözüm bulmamızı bekliyorsun ? Bari bi proje dosyası paylaş da öyle bakalım.[/b] [/quote] bağlantı sorunum olduğu için şu an örnek bir dosya yükleyemedim.Yaptıklarımı yazmaya çalışayım. [b]Kur[/b] butonunun On Click kodları sifirla() hepsinioku("4") Page.StartTimer(100) StatusDlg.Show(MB_ICONNONE, false); StatusDlg.SetTitle("%0 kurulum tamamlandı.."); kurulum("CheckBox1", "PowerISO", "PowerISO.exe") kurulum("CheckBox2", "Winamp", "winamp.exe") kurulum("CheckBox3", "Ccleaner", "ccleaner.exe") kurulum("CheckBox4", "AMS", "ams.exe") StatusDlg.SetMessage("Kurulum Sonlandırılıyor.."); Application.Sleep(1000) StatusDlg.Hide(); s1= CheckBox.GetChecked("CheckBox11"); s2= CheckBox.GetChecked("CheckBox9"); s3= CheckBox.GetChecked("CheckBox10"); s4= CheckBox.GetChecked("CheckBox8"); s5= CheckBox.GetChecked("CheckBox12"); [b]Kurulum Tamamlandığında [/b]CheckBox unun On Click kısmının kodları if CheckBox.GetChecked(this) == false then makeafterinstallation = 0 for i=1,4 do RadioButton.SetEnabled("RadioButton"..i, false); end else for i=1,4 do RadioButton.SetEnabled("RadioButton"..i, true); end end [b]Uygulamayı Sonlandır [/b] RadioButton1 On click kısmına makeafterinstallation = 1 [b]Bilgisayarı Yeniden Başlat [/b] RadioButton2 On click kısmına makeafterinstallation = 2 [b]Bilgisayarı Kapat[/b] RadioButton3 On click kısmına makeafterinstallation = 3 Okadar çok kod denedim ki bu kodları hangi arkadaştan aldığımı bile unuttum.Saygılar. Quote Link to comment Share on other sites More sharing options...
SAYGINER Posted June 16, 2012 Author Share Posted June 16, 2012 (edited) proje dosyasını gönderdim.Saygılar https://rapidshare.com/files/777489262/deneme.rar Edited June 16, 2012 by SAYGINER Quote Link to comment Share on other sites More sharing options...
SAYGINER Posted June 16, 2012 Author Share Posted June 16, 2012 Arkadaşlar bu konuda yararlanabileceğimiz kod veya bir link bilen yok mu?Teşekkürler Quote Link to comment Share on other sites More sharing options...
radyofon Posted June 16, 2012 Share Posted June 16, 2012 (edited) Yazacağın kod: [code]System.Reboot();[/code] Edited June 16, 2012 by radyofon Quote Link to comment Share on other sites More sharing options...
SAYGINER Posted June 16, 2012 Author Share Posted June 16, 2012 [quote name='radyofon' date='16 June 2012 - 19:55 ' timestamp='1339865731' post='1212692'] Yazacağın kod: [code]System.Reboot();[/code] [/quote] Teşekkürler.Ama RadioButton da bilgisayarı resetle seçilecek ve kurulacak programların bitiminde devreye otomatik olarak girecek. Quote Link to comment Share on other sites More sharing options...
radyofon Posted June 16, 2012 Share Posted June 16, 2012 (edited) Yazacağın kod: [code]Sytem.Reboot();---Reset atmak için [/code] [code]File.Run (_SystemFolder.."\\shutdown.exe", "-s", _SystemFolder, SW_HIDE, false);----kapatmak için[/code] Edited June 16, 2012 by radyofon Quote Link to comment Share on other sites More sharing options...
SAYGINER Posted June 16, 2012 Author Share Posted June 16, 2012 Yapmayı beceremedim.İlginize teşekkür ederim.Daha programlar kurulmadan hemen reset devreye giriyor. Quote Link to comment Share on other sites More sharing options...
radyofon Posted June 16, 2012 Share Posted June 16, 2012 [html]http://www.winutility.com/qsd/[/html] Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted June 16, 2012 Share Posted June 16, 2012 (edited) [color="#8B0000"]Sayın radyofon ;[/color] [b]Bilgisayarı kapatma, yeniden başlatma vs. kodları zaten var. Arkadaş vermiş onları. Orda bi sıkıntı yok.[/b] [color="#8B0000"]SAYGINER ;[/color] [b]Projeyi indirdim, birazdan Camiye giderim, dönüşte sorunu hallederiz inşAllah.[/b] Edited June 16, 2012 by Baba_ Quote Link to comment Share on other sites More sharing options...
radyofon Posted June 16, 2012 Share Posted June 16, 2012 (edited) Kur butonu sonuna eklenecek kodlar [code] run = Dialog.Message("Bilgi" "Bütün programlar kurulduysa devam etmek istiyor musunuz?", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1); if run == 6 then kapat reset komutları buraya end [/code] Edited June 16, 2012 by radyofon Quote Link to comment Share on other sites More sharing options...
radyofon Posted June 16, 2012 Share Posted June 16, 2012 şifreli mi bu? Quote Link to comment Share on other sites More sharing options...
SAYGINER Posted June 16, 2012 Author Share Posted June 16, 2012 bilgisayarım çok yavaşladığı için kapanıp açılması dakikaları buluyor.O yüzden cevap veremedim.şifresi 1111 olacak teşekkürler. Quote Link to comment Share on other sites More sharing options...
SAYGINER Posted June 16, 2012 Author Share Posted June 16, 2012 (edited) Arkadaşın bilgisayarında denedik.win 7 de çalıştı.Benim külüstür bilgisayarımda XP yüklü.XP den kaynaklanan ya da benim bilgisayardan kaynaklan bir hata mı var?Saygılar Edited June 16, 2012 by SAYGINER Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted June 16, 2012 Share Posted June 16, 2012 [b]Tamamdır.[/b] [code]http://www.mediafire.com/?xslwd67mtwqjoz0[/code] Quote Link to comment Share on other sites More sharing options...
SAYGINER Posted June 16, 2012 Author Share Posted June 16, 2012 İstediğim gibi oldu elinize sağlık.İstediğim gibi oldu elinize sağlık. 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.