blu32 Posted April 25, 2012 Share Posted April 25, 2012 Merhaba arkadaşlar. ben autoplay programında yeniyim yardım isticektim. Ben aşagıdaki gibi bir kod yazdım. fakat kodu çalıştırdıgımda programı kurmadan "dialog.message" mesajını veriyor. nerde yanlış yaptıgımı bulamadım yardım ederseniz çok sevirim. c1 = CheckBox.GetChecked("CheckBox1") c2 = CheckBox.GetChecked("CheckBox2") c3 = CheckBox.GetChecked("CheckBox3") c4 = CheckBox.GetChecked("CheckBox4") if c1 then result = File.Run("AutoPlay\\Docs\\Setup.exe", "", "", SW_MINIMIZE, true) Paragraph.SetText("Paragraph1", "Winamp kurulumu tamamlandı") Application.Sleep(2000) end if c1 or c2 or c3 or c4 then Dialog.Message("Program", "kurulum tamamlandı") end Quote Link to comment Share on other sites More sharing options...
kral1122 Posted April 25, 2012 Share Posted April 25, 2012 [quote name='blu32' date='25 April 2012 - 20:18 ' timestamp='1335374329' post='1192225'] Merhaba arkadaşlar. ben autoplay programında yeniyim yardım isticektim. Ben aşagıdaki gibi bir kod yazdım. fakat kodu çalıştırdıgımda programı kurmadan "dialog.message" mesajını veriyor. nerde yanlış yaptıgımı bulamadım yardım ederseniz çok sevirim. c1 = CheckBox.GetChecked("CheckBox1") c2 = CheckBox.GetChecked("CheckBox2") c3 = CheckBox.GetChecked("CheckBox3") c4 = CheckBox.GetChecked("CheckBox4") if c1 then result = File.Run("AutoPlay\\Docs\\Setup.exe", "", "", SW_MINIMIZE, true) Paragraph.SetText("Paragraph1", "Winamp kurulumu tamamlandı") Application.Sleep(2000) end if c1 or c2 or c3 or c4 then Dialog.Message("Program", "kurulum tamamlandı") end [/quote] Paragraph.SetText("Paragraph1", "Winamp kurulumu tamamlandı") Application.Sleep(2000) burada veriyor kardeş Quote Link to comment Share on other sites More sharing options...
blu32 Posted April 25, 2012 Author Share Posted April 25, 2012 [quote name='kral1122' date='25 April 2012 - 17:20 ' timestamp='1335374419' post='1192226'] Paragraph.SetText("Paragraph1", "Winamp kurulumu tamamlandı") Application.Sleep(2000) burada veriyor kardeş [/quote] hm peki. nasıl yazı yazdırabilirim orda yani mesaj program kuruluyor diye. Şimdiden Çok teşşkür ederim yardımın için Quote Link to comment Share on other sites More sharing options...
kral1122 Posted April 25, 2012 Share Posted April 25, 2012 (edited) [quote name='blu32' date='25 April 2012 - 20:24 ' timestamp='1335374661' post='1192229'] hm peki. nasıl yazı yazdırabilirim orda yani mesaj program kuruluyor diye. Şimdiden Çok teşşkür ederim yardımın için [/quote] kardeş emin değilim ama şöyle bi dene istersen if (c1) then result = File.Run("program seçilecek yer", "", "", SW_MINIMIZE, true) StatusDlg.Show(MB_ICONNONE, false); StatusDlg.ShowProgressMeter(false); StatusDlg.SetTitle("Programlar Kurulurken Lütfen Bekleyin"); StatusDlg.SetMessage("programın adı.... Sisteminize Kuruluyor ..."); StatusDlg.Hide(); end deneme şansım yok şuan inşallah olur doğru vermişimdir yanlışsada doğrusunu biri verir sen bi dene istersen Edited April 25, 2012 by kral1122 Quote Link to comment Share on other sites More sharing options...
blu32 Posted April 25, 2012 Author Share Posted April 25, 2012 Saol ama yapamadım. yinede çok tşk ederim. c# yapsam daha iyiydi. bunda ufak bi programı bile sabahten beri çalıştırıp yükleyemedim. Quote Link to comment Share on other sites More sharing options...
blu32 Posted April 25, 2012 Author Share Posted April 25, 2012 arkadaşlar.. butonun özelliklerinden hızlı eyleme girip run programdan exe yi seçince çalışıyor.. ama butonun script ayarlarında girip File.Run("AutoPlay\\Docs\\program.exe", "", "", SW_MINIMIZE, true); yazınca exeyi çalışmıyor. niye olabilir? Yardım edermisiniz Quote Link to comment Share on other sites More sharing options...
blu32 Posted April 25, 2012 Author Share Posted April 25, 2012 Yardım edicek kimse yok galiba... Quote Link to comment Share on other sites More sharing options...
Kral__ Posted April 26, 2012 Share Posted April 26, 2012 File.Open dene bakalım olucakmı Quote Link to comment Share on other sites More sharing options...
HalilYanar Posted April 26, 2012 Share Posted April 26, 2012 Hayır ilk önce dosyanın Docs kısmına .exe'ni atman gerekiyor o yüzden ilk önce check box una Run Program Komutu verip dosyanı Docs klasörüne yüklet ondan sonra Komutu kaldır seçip kur dediğinde kurulucaktır. Benim Aio'mda kullandığım kod : [quote]AdobeFlashPlayer = CheckBox.GetChecked("CheckBox1"); if (AdobeFlashPlayer) then StatusDlg.Show(MB_ICONNONE, false); StatusDlg.ShowProgressMeter(false); StatusDlg.SetTitle("Adobe Flash Player 10.3.181.14"); StatusDlg.SetMessage("Adobe Flash Player 10.3.181.14 Kuruluyor..."); File.Run("AutoPlay\\Docs\\Adobe Flash Player 10.3.181.14.exe", "", "", SW_SHOWNORMAL, true); Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\Triangle.ogg", true, false); StatusDlg.Hide(); end[/quote] 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.