Jump to content

Nasıl Parametre Kullanabilirim ?


pcusta_99
 Share

Recommended Posts

[center][b]AMS'de CommandLine Olayı Var. Fakat Dediğin Gibi Değil. Bir Dosyaya Birlikte Aç Dediğinde Programla Açmak İçin Kullanılıyor. Dosya İlişkilendirmesi İçin. Fakat Arzu Ettiğin Şekilde Parametre Kabul Etmiyor Diye Biliyorum.[/b][/center]

Link to comment
Share on other sites

[quote name='ReaLyMaN' date='13 January 2012 - 12:29 ' timestamp='1326450594' post='1140000']
@ Baba_ Yanlış anlıyorsun.Bak şimdi profe (ams) dosyasını editledikten sonra örneğin /s parametresiyle açınca işlem yapsın diyor.Bende bunu daha önce aradım bulamadım.KintaRo'ya danışacaktım malesef o da uzun zamandır yok :(
[/quote]
[b]
Ben de ondan bahsediyorum zaten. CommandLine var ama istediğin parametreyle çalıştırmak için değil. Sadece dosya ilişkilendirmelerinde kullanmak için. Örneğin metin belgesine çift tıklayınca proje açılacak ve inputta gösterecek. Bu oluyor. Ama parametre ile çalıştırma olmuyor bildiğim kadarıyla.[/b]

Link to comment
Share on other sites

Çalıştırmayı beceremedim ama azıcık mantık kullansan faydalı olur :D Bu denemedim (çalıştıramadığım için :) ) ama olur heralde :D

[quote]for sira, deger in _CommandLineArgs do
if deger == "d1" then
DialogEx.Show("Dialog1", true, nil, nil);
end
if deger == "d2" then
DialogEx.Show("Dialog2", true, nil, nil);
end
end[/quote]

Link to comment
Share on other sites

[quote name='ReaLyMaN' date='13 January 2012 - 13:36 ' timestamp='1326454564' post='1140035']
for sira, deger in _CommandLineArgs do
if deger == "d1" then
DialogEx.Show("Dialog1", true, nil, nil);
end
if deger == "d2" then
DialogEx.Show("Dialog2", true, nil, nil);
end
end
[/quote]

[quote name='galetis' date='13 January 2012 - 13:00 ' timestamp='1326452450' post='1140019']
for sira, deger in _CommandLineArgs do
if deger == "ReaLyMaN" then
File.Run();
end
end
[/quote]

Bunlar sanırım Global Functions'a yazılacak ama çalıştırmayı başaramadım.


[img]http://i.imgur.com/lAACV.png[/img]

Link to comment
Share on other sites

[color="#000000"]Bu şekilde hata olmuyor.

[quote][color="#0000FF"]for[/color] sira[color="#FF0000"],[/color] deger [color="#0000FF"]in[/color] pairs ( _CommandLineArgs) [color="#0000FF"]do[/color]
[color="#0000FF"]if[/color] deger [color="#FF0000"]==[/color] [color="#483D8B"]"ReaLyMaN"[/color] [color="#0000FF"]then[/color]
File[color="#FF0000"].[/color]Run()[color="#FF0000"];[/color]
[color="#0000FF"]end
end[/color][/quote][/color]

Edited by ReaLyMaN
Link to comment
Share on other sites

Ben bu konuyu çöpe taşıdım sen tekrar açmışsın, amacını bilmem ama bu son uyarındır zaten uçurumun kenarındasın debiveririm valla aşağı!

Forumda benzeri konular var dedim:
[code]http://www.tnctr.com/topic/180167-
http://www.tnctr.com/topic/176365-
http://www.tnctr.com/topic/138127-
http://www.tnctr.com/topic/187376-[/code]

Konuyu cevap veren arkadaşların mesajlarındaki içerikler sebebiyle çöpe taşımıyorum.

Link to comment
Share on other sites

[quote name='blackman12' date='13 January 2012 - 15:31 ' timestamp='1326461511' post='1140087']
Ben bu konuyu çöpe taşıdım sen tekrar açmışsın, amacını bilmem ama bu son uyarındır zaten uçurumun kenarındasın debiveririm valla aşağı!

Forumda benzeri konular var dedim:
[code]http://www.tnctr.com/topic/180167-
http://www.tnctr.com/topic/176365-
http://www.tnctr.com/topic/138127-
http://www.tnctr.com/topic/187376-[/code]

Konuyu cevap veren arkadaşların mesajlarındaki içerikler sebebiyle çöpe taşımıyorum.
[/quote]


Özür dilerim sayın blackman12. Amacım inat yapmak değildi. "Bölüm Kurallarına Uygun olmayan konu açtığınız için konunuz Çöp Kutusuna taşınmıştır." dediğiniz için tekrar açtım, yani konuyu yanlış yere açtığımı zannetim.

[b][color="#0000FF"]blackman12 > Sende haklısın tabi, "Aynı konu Açılmış" uyarısı eklemem gerekiyordu.[/color][/b]

Link to comment
Share on other sites

On preload evresine o kodu yazdıgınızda çalışacaktır bende mp3 playerda kullandım

for i, v in pairs (_CommandLineArgs) do
if v == "/ayar" then
Dialog.Message("(!)","Ayarlar kısmını açtınız.");
end
end

Auto play kendi exe dosyasından sonra ne yazarsanız onu alıyor /ayar da yazsanız olur sadece ayar yazsanızda olur ona göre kodu değiştirmeniz gerekiyor .

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