Jump to content

Checkbox Sorunu


blu32
 Share

Recommended Posts

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
Link to comment
Share on other sites

[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ş

Link to comment
Share on other sites

[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

Link to comment
Share on other sites

[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 by kral1122
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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]

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...