Dj Demir Posted August 5, 2013 Share Posted August 5, 2013 (edited) Selamun aleyküm arkadaşlar. Internet sayfası üzerinde bulunan bir butonun linkini kopyalayabilir miyiz acaba? veyahut o butona bastırabilir miyiz? AutoIT'de bulunan _IECreate fonksiyonu gibi. Bu işlem AutoIT'de kolay yapılıyor ama AMS'de bulamadım. Var mı benzeri bir fonksiyon veyahut kod. Veya AutoIT'in bu fonksiyonunu AMS'de bir şekilde çağırma ve kullanma yolu var mı? Teşekkürler... Edited August 6, 2013 by Dj Demir Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted August 5, 2013 Share Posted August 5, 2013 Bildiğim kadarıyla AMS'de öyle bi imkan yoktu. Bir aralar Autoit.dll vardı, onda belki istediğin fonksiyon vardır. Quote Link to comment Share on other sites More sharing options...
fearlesshackteam Posted August 5, 2013 Share Posted August 5, 2013 AMS bilmiyorum ama genel olarak yazılım dilleri regex işlemlerine izin veriyor. AMS ile regex kullanılabiliyorsa biraz araştır belki faydası olur. Quote Link to comment Share on other sites More sharing options...
Dj Demir Posted August 5, 2013 Author Share Posted August 5, 2013 AutoIT.dll'yi bir ara inceledim çözemedim. Karşılıklı komutlar kullanınca program hata veriyordu. Evet Ams bu konuda yetersiz kalıyor maalesef. Bakalım regex kullanımı ile ilgili neler bulabilirim. Teşekkürler. Quote Link to comment Share on other sites More sharing options...
mesale0077 Posted August 5, 2013 Share Posted August 5, 2013 autoite cmdline ile ilet o yapsın buna benzer bir örnek vardı sanırım divaneTr arkadaşımızın bir örneği vardır Quote Link to comment Share on other sites More sharing options...
SecondLife Posted August 5, 2013 Share Posted August 5, 2013 Kendin bir plugin yap fazla araştırma ( dahakolay olur) Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted August 5, 2013 Share Posted August 5, 2013 autoite cmdline ile ilet o yapsın buna benzer bir örnek vardı sanırım divaneTr arkadaşımızın bir örneği vardır AMS ile uğraşmayalı uzun zaman oldu. Hangi projede kullanmıştım hatırlayamadım şimdi :) Quote Link to comment Share on other sites More sharing options...
mesale0077 Posted August 5, 2013 Share Posted August 5, 2013 amsde autoite komut ile bilgi aktarımıydı ne cmdline vardı proje değilde amsden autoite bilgi aktarımıydı ben konu olarak sormuştum bir ara hem autoitten amsye hemde amsden autoite yönlendirme vardı örnek olarak anlatmıştınız Quote Link to comment Share on other sites More sharing options...
reyiz Posted August 5, 2013 Share Posted August 5, 2013 (edited) #NoTrayIcon #include <IE.au3> If $cmdline[0] = 0 Then Exit EndIf MsgBox(0,0,$cmdline[1]) MsgBox(0,0,$cmdline[2]) MsgBox(0,0,$cmdline[3]) AutoIt'de command line kullanımı bu şekilde. $cmdline[0] parametre verilip verilmediğini kontrol eder. $cmdline[1], $cmdline[2] şeklinde de kullanılan parametreleri sırasıyla görebilirsiniz. Parametreden alınan internet adresini de bu şekilde açıyoruz ve kaydediyoruz: Global $ie = _IECreate($cmdline[1]) $html = _IEBodyReadHTML ($ie) FileWrite(@TempDir & "\translate.tmp", $html) Diyelim sayfadaki bir butona tıklayıp kodları alacaksınız, bu şekilde yapıcaksınız: Global $oForm = _IEFormGetObjByName($oIE, "f") _IEFormSubmit($oForm) $html = _IEBodyReadHTML ($ie) FileWrite(@TempDir & "\translate.tmp", $html) Edited August 5, 2013 by reyiz Quote Link to comment Share on other sites More sharing options...
mesale0077 Posted August 5, 2013 Share Posted August 5, 2013 #NoTrayIcon #include <IE.au3> If $cmdline[0] = 0 Then Exit EndIf MsgBox(0,0,$cmdline[1]) MsgBox(0,0,$cmdline[2]) MsgBox(0,0,$cmdline[3]) AutoIt'de command line kullanımı bu şekilde. $cmdline[0] parametre verilip verilmediğini kontrol eder. $cmdline[1], $cmdline[2] şeklinde de kullanılan parametreleri sırasıyla görebilirsiniz. Parametreden alınan internet adresini de bu şekilde açıyoruz ve kaydediyoruz: Global $ie = _IECreate($cmdline[1]) $html = _IEBodyReadHTML ($ie) FileWrite(@TempDir & "\translate.tmp", $html) Diyelim sayfadaki bir butona tıklayıp kodları alacaksınız, bu şekilde yapıcaksınız: Global $oForm = _IEFormGetObjByName($oIE, "f") _IEFormSubmit($oForm) $html = _IEBodyReadHTML ($ie) FileWrite(@TempDir & "\translate.tmp", $html) reyiz birde amsden autoite yönlendirme ams kodunu yazsaydın :D buna benzer yapılabilinir reyiz dediği gibi olur ams konusunda pek bilgim yok Quote Link to comment Share on other sites More sharing options...
reyiz Posted August 5, 2013 Share Posted August 5, 2013 (edited) AutoIt plugini ile yapılabilir mi bilmem. AutoIt plugini ile yapılabilecekler sınırlı. AutoIt ile sonucu bir dosyaya yazdırırsın. Daha sonrada dosyadaki veriyi AMS ile çekersin. Farklı bir yolu var mı bilmiyorum. AutoIt'den AMS penceresine veri yollanabilir ama uzun iş. Edited August 5, 2013 by reyiz Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted August 5, 2013 Editor Share Posted August 5, 2013 Ams ile regex kullanılabiliyor örnek çalışmalarda var. Quote Link to comment Share on other sites More sharing options...
reyiz Posted August 5, 2013 Share Posted August 5, 2013 Evet ama IE içeriğini nasıl alacağız? Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted August 5, 2013 Editor Share Posted August 5, 2013 Yapmak istediğiniz şeyi tam olarak anlayamadım.Açık layıcı bir yorum görürsem yardımcı olabilirim dll felan olmadı C# ile birlikte çalıştırırız. Quote Link to comment Share on other sites More sharing options...
mesale0077 Posted August 5, 2013 Share Posted August 5, 2013 (edited) http://www.tnctr.com/topic/202935-command-line-arguments-autoplay-media-studio/ http://www.tnctr.com/topic/201135-parametre-destekli-program-yapymy/ http://www.mindquake.com.br/en/code/110-cmdline?start=1 Edited August 5, 2013 by mesale0077 Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted August 5, 2013 Editor Share Posted August 5, 2013 Örnek websitesi hangisi buton sürekli değiştiyormu bunlar önemli. Quote Link to comment Share on other sites More sharing options...
reyiz Posted August 5, 2013 Share Posted August 5, 2013 (edited) Sürekli değişmiyorsa Http.Download ile sayfa kaydedilip RegExp ile formun kaynağı bulunabilir. Değişiyorsa AutoIt ile tıklatmak gerekiyor. pairs'in dediği gibi örnek hazırlayabilmemiz için bir sitenin adresini verirseniz iyi olur. Edited August 5, 2013 by reyiz Quote Link to comment Share on other sites More sharing options...
Dj Demir Posted August 6, 2013 Author Share Posted August 6, 2013 Yani gayet anlaşılır ve gayet de iyi anlamışsınız. Evet buton linki sürekli değişiyor Her seferinde farklı bir adresten veri çekiyor. O yüzden HTTP.Download kullanamıyorum. Ancak belki bir şekilde AutoIT'deki gibi bir fonksiyonu var diye sormuştum. Ama yokmuş maalesef. Ayrıca Ams ile AutoIT kod alışverişinin kısa yoldan yapılması da mümkün gibi gözükmedi yorumları okuyunca :) Yani site örneğine gerek yok Çok lazımsa youtubeden müzik indiren bütün sitelerin download butonları sürekli başka adresten veriyi çekiyor. Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted August 6, 2013 Editor Share Posted August 6, 2013 Yani gayet anlaşılır ve gayet de iyi anlamışsınız. Evet buton linki sürekli değişiyor Her seferinde farklı bir adresten veri çekiyor. O yüzden HTTP.Download kullanamıyorum. Ancak belki bir şekilde AutoIT'deki gibi bir fonksiyonu var diye sormuştum. Ama yokmuş maalesef. Ayrıca Ams ile AutoIT kod alışverişinin kısa yoldan yapılması da mümkün gibi gözükmedi yorumları okuyunca :) Yani site örneğine gerek yok Çok lazımsa youtubeden müzik indiren bütün sitelerin download butonları sürekli başka adresten veriyi çekiyor. Yardımı isteyen sen örnek site yi benmi ariycam internetten.Bu istediğin şey ams ilede yapılır autoit ye gerek kalmadan. Quote Link to comment Share on other sites More sharing options...
Dj Demir Posted August 6, 2013 Author Share Posted August 6, 2013 mesela :whistle: www.vidtomp3.com veyahut www.youtube-mp3.org Quote Link to comment Share on other sites More sharing options...
Dj Demir Posted August 7, 2013 Author Share Posted August 7, 2013 pairs nasıl yapılacağını biraz gösterebilir misin acaba? Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted August 7, 2013 Editor Share Posted August 7, 2013 Örnek çalışmalarda bugun youtube dan mp3 indirme uygulaması yazdım o uygulamayı sana örnek osun diye yazdım.O şekilde web üzerine istediğin veriyi gönderip çekebilirsin. Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted August 7, 2013 Share Posted August 7, 2013 (edited) mesela :whistle: www.vidtomp3.com veyahut www.youtube-mp3.org youtube downloader mi yapacaksın ? Ams de denemedim ama C# ile yapmıştım http://www.tnctr.com/topic/225196-extremity-soft-youtube-mp3-downloader-11/ Edited August 7, 2013 by WolfmanTR_ Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted August 7, 2013 Editor Share Posted August 7, 2013 Hatta yaptıgım örnek verdiğin sitenin birtanesi. Quote Link to comment Share on other sites More sharing options...
WolfmanTR_ Posted August 7, 2013 Share Posted August 7, 2013 @pairs'in yaptığı ilgili örnek http://www.tnctr.com/topic/228510-youtube-mp3-downloader-example/#entry1347612 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.