Jump to content

Checkboxların Exe Adını Nasıl Bulabilirim ?


Konohali
 Share

Recommended Posts

CheckBox1 seçiliyse AutoPlay\\Programlar konumundaki Pro1.exe çalıştırır

[quote]c1 = CheckBox.GetChecked("CheckBox1")
if c1 then -- eğer 1. checkbox seçili ise
File.Run("AutoPlay\\Programlar\\Pro1.exe", "", "AutoPlay\\Programlar", SW_SHOWNORMAL, true)-- buraya program kurulum kodu gelecek
end[/quote]

Link to comment
Share on other sites

Benimde benzer bir sorunumu var mesela checkbox1 seçili olduğu zaman checkbox1.exe'yi çalıştıracak, checkbox2 seçili olduğu zaman checkbox2.exe'yi çalıştıracak. Aslında bu kodları tek tek yazsakta olur ama kısaltımı olamazmı mesela checkbox30'a kadar gitsin bu kodlar.

Link to comment
Share on other sites

Kur Komutu:
[quote]c1 = CheckBox.GetChecked("CheckBox1")
if c1 then -- eğer 1. checkbox seçili ise
File.Run("AutoPlay\\Programlar\\Pro1.exe", "", "AutoPlay\\Programlar", SW_SHOWNORMAL, true)-- buraya program kurulum kodu gelecek
end[/quote]
Hepsini Seç:
[quote]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);
CheckBox.SetChecked("CheckBox11",true);
CheckBox.SetChecked("CheckBox12",true);[/quote]

hepsini kaldirida yazsam ayni sadece false oluyor

klasörü açtım exeyi attım kurmuyor.

Edited by kralturk02
Link to comment
Share on other sites

@pcusta_99 Şunu denesen



[quote]d= {};
c= {};
for i=1,30 do
c[i] = CheckBox.GetChecked("CheckBox"..i)
if c[i] then
d[i]=File.Run("AutoPlay\\Programlar\\checkbox"..i..".exe", "", "AutoPlay\\Programlar", SW_SHOWNORMAL, true)-- buraya program kurulum kodu gelecek
end
end[/quote]

Edited by ReaLyMaN
Link to comment
Share on other sites

[quote name='ReaLyMaN' date='14 December 2011 - 17:46 ' timestamp='1323877615' post='1129034']
@pcusta_99 Şunu denesen
[/quote]

Bu kur butonuna değil mi ? Birde buraya program kurulum kodu gelecek yazan yere birşey yazmayacağım değil mi ? Orası sadece açıklama sanırım.

Link to comment
Share on other sites

Bu checkboc 1 den 30 kadar sıralı olarak seçili olup olmadığına bakar.Seçiliyse checkbox1exe vs. şeklinde açar.Kur butonuna yaz.(Checkbox1 seçiliyse checkbox1.exe, Checkbox2 seçiliyse checkbox2.exe şeklinde açar.)
Evet buraya program kurulum kodu gelecek yazan yer açıklama.[color="#FF0000"]AutoPlay\Programlar[/color] konumuna yazılımları koymalısın.Buna dikkat et

Link to comment
Share on other sites

[quote name='MostWanted' date='14 December 2011 - 21:30 ' timestamp='1323891039' post='1129216']
Çocuklar emin olun yazdığınız hiç bir şeyi anlamıyor şu anda.Çünkü bi anda heves etmiş ve hop diye dalmış olaya.Bi okusa konuları bi araştırsa kavrayacak da.
[/quote]

Beni kastediyorsanız hocam Realyman arkadaşım sayesinde gayet anladım.

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