dragon3781 Posted March 30, 2012 Share Posted March 30, 2012 (edited) Merhaba ; Öncelikle Elimde Örnek Çalışma olmadığı için ( Nereden Başlayacagımı Bulamadım ) sadece açıklamalı resim koymak zorunda kaldım , konu kurallara aykırı ise silinebilir. [b]Sorum :[/b] AMS nesneleri ile yada Plugins - Objects vs.. Kullanarak " .dll dosyalarını çağırıp - listeletip - içeriğini okutabilirmiyiz " acaba ? Örnek Resim ; [img]http://www.tnctr.com/uploads/imgs/pre_1333117694__dll.jpg[/img] Açıkcası Dll okutmak ve listelemek için Dll kullanayım diye düşündüm , onunda dll adını bilmiyorum Yardımcı olabilirseniz sevinirim. Edited March 30, 2012 by dragon3781 Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted March 30, 2012 Share Posted March 30, 2012 Valla yapsa yapsa KintaRo abi yapar bunu Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted March 30, 2012 Share Posted March 30, 2012 [b]KintaRo yapamaz [/b] Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted March 30, 2012 Share Posted March 30, 2012 (edited) [quote name='Baba_' date='30 March 2012 - 17:58 ' timestamp='1333119497' post='1177696'] [b]KintaRo yapamaz [/b] [/quote] Getir gaza getir KintaRo abi sen yaparsın en büyük sensin en birinci sensin ! :D Gaza getirme diyom bide Edited March 30, 2012 by nightmare3519 Quote Link to comment Share on other sites More sharing options...
El-Arabi Posted March 30, 2012 Share Posted March 30, 2012 (edited) Ugraşmak lazım.Olmaz diye birşey yok illaki bir yöntemle yapılabilir yani. Edited March 30, 2012 by El-Arabi Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted March 30, 2012 Share Posted March 30, 2012 [quote name='El-Arabi' date='30 March 2012 - 18:04 ' timestamp='1333119892' post='1177704'] Ugraşmak lazım.Olmaz diye birşey yok illaki bir yöntemle yapılabilir yani. [/quote] [b]Niye AMS ile herşey yapılabiliyor mu ki ?[/b] Quote Link to comment Share on other sites More sharing options...
El-Arabi Posted March 30, 2012 Share Posted March 30, 2012 Ams ile demedimki ek birşey ile yapılabilir mesela yardımcı bşr program ile. Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted March 30, 2012 Share Posted March 30, 2012 [b]Sen AMS ile dememiş olabilirsin ama bulunduğumuz bölüm ve konuyu açan kişinin sorusu AMS üzerine [/b] Quote Link to comment Share on other sites More sharing options...
El-Arabi Posted March 30, 2012 Share Posted March 30, 2012 Baba_ yanlış anladın mesela bir program düşün bir dll i açıp verilerini bir texte export edebiliyor ve bu program parametre ile çalışıyor.Ams de File.Run le bu programı çalıştırıp verileri bir texte export edip oradan çektirdiğin zaman yardımcı program sayesinde ams ye veri çekmiş olmazmısın. Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted March 30, 2012 Share Posted March 30, 2012 [quote name='El-Arabi' date='30 March 2012 - 18:49 ' timestamp='1333122550' post='1177739'] Baba_ yanlış anladın mesela bir program düşün bir dll i açıp verilerini bir texte export edebiliyor ve bu program parametre ile çalışıyor.Ams de File.Run le bu programı çalıştırıp verileri bir texte export edip oradan çektirdiğin zaman yardımcı program sayesinde ams ye veri çekmiş olmazmısın. [/quote] [b]Öyle belki olabilir. Mesajında daha açık olsaydın yanlış anlamazdım.[/b] Quote Link to comment Share on other sites More sharing options...
El-Arabi Posted March 30, 2012 Share Posted March 30, 2012 Benb ir örnek hazırlayıp sunacagım birazdan. Quote Link to comment Share on other sites More sharing options...
El-Arabi Posted March 30, 2012 Share Posted March 30, 2012 Buyurun arkadaşlar ufak bir örnek geliştirilebilir. http://www.mediafire.com/download.php?gc9le1x57j6phvm Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 30, 2012 Share Posted March 30, 2012 El-Arabi'nin izlediği yol doğru ama eksik bilgi göndermiş exe'ye o yüzden fonksiyonları alamıyor, kodlar şu şekilde olmalı: [codebox]result = File.Run("AutoPlay\\Docs\\dllexp.exe", "/from_files \"" .. _SourceFolder .. "\\Autoplay\\Docs\\CpuInfo.dll\" /sxml \"" .. _SourceFolder .. "\\Autoplay\\Docs\\functions.xml\"", "AutoPlay\\Docs", SW_HIDE, false); Application.Sleep(500); XML.Load("AutoPlay\\Docs\\functions.xml"); count = XML.Count("exported_functions_list","item"); XML.Delimiter = "|"; for i=1,count do deger = XML.GetValue("exported_functions_list/item|"..i.."/function_name"); result = ListBox.AddItem("ListBox1",deger, ""); end[/codebox] Quote Link to comment Share on other sites More sharing options...
dragon3781 Posted March 31, 2012 Author Share Posted March 31, 2012 Peki bunu döngü ile komutlara dosya adını vermeden secileni export edip komutu getir deme imkanımız varmıdır ? Secilen Dll lin okumasını yapıp export edip komutlarını listeye yazacak. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 31, 2012 Share Posted March 31, 2012 bir gözat buttonu yapin, dosyayı seçtiğinizde gelen veriyi [quote]File.Run("AutoPlay\\Docs\\dllexp.exe", "/from_files \"" .. gelen_dosya_yolu .. "\" /sxml \"" .. _SourceFolder .. "\\Autoplay\\Docs\\functions.xml\"", "AutoPlay\\Docs", SW_HIDE, false);[/quote] şeklinde uygulayın. edit: ben yanlış anladım heralde, dosyayı gösterip yapayım dediniz zannettim, neyse ona göre düzeltirsiniz Quote Link to comment Share on other sites More sharing options...
dragon3781 Posted April 2, 2012 Author Share Posted April 2, 2012 (edited) Merhaba ; Proje olmaya başladı fakat ; [img]http://www.tnctr.com/uploads/imgs/pre_1333355885__dlll.jpg[/img] [b]Page 1 ( On Show )[/b] [code] tAra = File.Find("AutoPlay\\Docs", "*.dll", false, true, nil, nil) if tAra then for i,v in pairs(tAra) do ListBox.AddItem("ListBox2", String.SplitPath(v).Filename, v) end end [/code] [b]ListBox2 ( On Select )[/b] [code] result = File.Run("AutoPlay\\Docs\\dllexp.exe", "/from_files \"" .. _SourceFolder .. "\\Autoplay\\Docs\\*.dll\" /sxml \"" .. _SourceFolder .. "\\Autoplay\\Docs\\functions.xml\"", "AutoPlay\\Docs", SW_HIDE, false); Application.Sleep(500); XML.Load("AutoPlay\\Docs\\functions.xml"); count = XML.Count("exported_functions_list","item"); XML.Delimiter = "|"; for i=1,count do deger = XML.GetValue("exported_functions_list/item|"..i.."/function_name"); result = ListBox.AddItem("ListBox1",deger, ""); end [/code] ListBox 1 e veriler her defasında aynı dosyanın ıcerıgı gelıyor . ListBox2 de sectigim dosyanın verileri gelmıyor. Hata yaptıgım kısım "\\Autoplay\\Docs\\*.dll\" burasımı acaba ? Edited April 2, 2012 by dragon3781 Quote Link to comment Share on other sites More sharing options...
KintaRo Posted April 2, 2012 Share Posted April 2, 2012 [quote]result = File.Run("AutoPlay\\Docs\\dllexp.exe", "/from_files \"" .. ListBox.GetItemData(this) .. "\" /sxml \"" .. _SourceFolder .. "\\Autoplay\\Docs\\functions.xml\"", "AutoPlay\\Docs", SW_HIDE, false); Application.Sleep(500); XML.Load("AutoPlay\\Docs\\functions.xml"); count = XML.Count("exported_functions_list","item"); XML.Delimiter = "|"; for i=1,count do deger = XML.GetValue("exported_functions_list/item|"..i.."/function_name"); result = ListBox.AddItem("ListBox1",deger, ""); end [/quote] bu şekilde deneyin. Quote Link to comment Share on other sites More sharing options...
NotToday Posted April 2, 2012 Share Posted April 2, 2012 @dragon bilgisayarım dün arızalandı.Yapılınca senin meseleyle ilgilencem. Quote Link to comment Share on other sites More sharing options...
dragon3781 Posted April 2, 2012 Author Share Posted April 2, 2012 Hata verdi Kintaro Kodları deneyince ; [img]http://www.tnctr.com/uploads/imgs/pre_1333360102__hata.jpg[/img] Bir yerde hatamı yaptım :S Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted April 2, 2012 Share Posted April 2, 2012 (edited) [quote name='KintaRo' date='02 April 2012 - 11:58 ' timestamp='1333357100' post='1179562'] bu şekilde deneyin. result = File.Run("AutoPlay\\Docs\\dllexp.exe", "/from_files \"" .. [b]ListBox.GetItemData(this)[/b] .. "\" /sxml \"" .. _SourceFolder .. "\\Autoplay\\Docs\\functions.xml\"", "AutoPlay\\Docs", SW_HIDE, false); Application.Sleep(500); XML.Load("AutoPlay\\Docs\\functions.xml"); count = XML.Count("exported_functions_list","item"); XML.Delimiter = "|"; for i=1,count do deger = XML.GetValue("exported_functions_list/item|"..i.."/function_name"); result = ListBox.AddItem("ListBox1",deger, ""); end [/quote] Bu kalın yazdığım yer ListBox.GetItemData("ListBox1", this) olacak galiba Ama denedim yine bir değişiklik yok Edited April 2, 2012 by nightmare3519 Quote Link to comment Share on other sites More sharing options...
dragon3781 Posted April 2, 2012 Author Share Posted April 2, 2012 benimde aklıma o geldı denedim aynısını , hatta this kaldırıp denedim gene olmadı. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted April 2, 2012 Share Posted April 2, 2012 pardon, ams yi açmadan yazmıştım, ListBox.GetItemData(this) yerine ListBox.GetItemData(this, ListBox.GetSelected(this)) yazın Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted April 2, 2012 Share Posted April 2, 2012 [quote name='KintaRo' date='02 April 2012 - 14:46 ' timestamp='1333367160' post='1179647'] pardon, ams yi açmadan yazmıştım, ListBox.GetItemData(this) yerine ListBox.GetItemData(this, ListBox.GetSelected(this)) yazın [/quote] Abi yine değişen bişey yok :S Quote Link to comment Share on other sites More sharing options...
KintaRo Posted April 2, 2012 Share Posted April 2, 2012 o zaman başka bir sorun var şu proje dosyasını versenize bi? Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted April 2, 2012 Share Posted April 2, 2012 http://www.mediafire.com/?l3r6022wba2plfg 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.