pcusta_99 Posted January 12, 2012 Share Posted January 12, 2012 Meraba arkadaşlar. Autoplay Media Studio'da parametre kullanma şansı var mı ? Mesela autorun.exe /run dersek bizim istediğimiz sayfayı, dialoğu, işlemi vs. yapacak. Şimdiden yardımcı olacak arkadaşlara minnetler. Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted January 13, 2012 Share Posted January 13, 2012 [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] Quote Link to comment Share on other sites More sharing options...
NotToday Posted January 13, 2012 Share Posted January 13, 2012 @ 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 Link to comment Share on other sites More sharing options...
DivaneTR Posted January 13, 2012 Share Posted January 13, 2012 [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] Quote Link to comment Share on other sites More sharing options...
NotToday Posted January 13, 2012 Share Posted January 13, 2012 KintaRo'ya Facebook'dan biraz rahatsız etme vakti gelmiş o zaman Quote Link to comment Share on other sites More sharing options...
galetis Posted January 13, 2012 Share Posted January 13, 2012 for sira, deger in _CommandLineArgs do --yapilacak islemler end Kastettiğin bu değilmi? Quote Link to comment Share on other sites More sharing options...
NotToday Posted January 13, 2012 Share Posted January 13, 2012 (edited) @galetis nasıl winrar setubunu /S parametresiyle açınca kurulum gözükmüyor ya.Bende /ReaLyMaN parametresiyle mesela açınca bir exe kurmak istiyorum Edited January 13, 2012 by ReaLyMaN Quote Link to comment Share on other sites More sharing options...
galetis Posted January 13, 2012 Share Posted January 13, 2012 for sira, deger in _CommandLineArgs do if deger == "ReaLyMaN" then File.Run(); end end deger stringinin içeriği ne olur tam bilemiyorum. "/ReaLyMaN" olarakta gelebilir. Debug modundan bakarsın artık. Quote Link to comment Share on other sites More sharing options...
pcusta_99 Posted January 13, 2012 Author Share Posted January 13, 2012 Ben diyelim /d1 parametresi ile çalıştırdığımda program açılıp dialog açılacak, /d2 parametresi ile açtığımda pogram açılıp dialog 2 açılacak. Quote Link to comment Share on other sites More sharing options...
NotToday Posted January 13, 2012 Share Posted January 13, 2012 Çalıştırmayı beceremedim ama azıcık mantık kullansan faydalı olur Bu denemedim (çalıştıramadığım için ) ama olur heralde [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] Quote Link to comment Share on other sites More sharing options...
galetis Posted January 13, 2012 Share Posted January 13, 2012 Aynı mantık zaten for sira, deger in _CommandLineArgs do if deger == "d1" then Dialog.Show("Dialog1"); elseif deger == "d2" then Dialog.Show("Dialog2"); end end Quote Link to comment Share on other sites More sharing options...
pcusta_99 Posted January 13, 2012 Author Share Posted January 13, 2012 [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] Quote Link to comment Share on other sites More sharing options...
galetis Posted January 13, 2012 Share Posted January 13, 2012 Pairs şeklinde almayı bi dene. Quote Link to comment Share on other sites More sharing options...
NotToday Posted January 13, 2012 Share Posted January 13, 2012 (edited) [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 January 13, 2012 by ReaLyMaN Quote Link to comment Share on other sites More sharing options...
blackman12 Posted January 13, 2012 Share Posted January 13, 2012 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 Link to comment Share on other sites More sharing options...
pcusta_99 Posted January 13, 2012 Author Share Posted January 13, 2012 [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] Quote Link to comment Share on other sites More sharing options...
ali::12 Posted January 13, 2012 Share Posted January 13, 2012 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 . 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.