panceh Posted May 1, 2013 Share Posted May 1, 2013 (edited) bot web sayfasına gidip textboxa istediğimi yazıcak ama soyle bir sıkıntı texboxa id verilmemiş.Class degeri atanmış id olmadı için gönderemiyorum class göre atama yapabilirmiyim acaba #include <IE.au3> $oIE = _IECreate("https://wwww.test.com") $aArray = _IEGetObjByClass($oIE, "topHolder", "div") $o = $aArray[1] MsgBox(1, "test", $o.innerText) Sleep("2000") _IEPropertySet($aArray ,'input','test') Func _IEGetObjByClass($oIE, $sClass, $input = "*") Local $aRet[2] = [0] Local $allHTMLTags = _IETagNameGetCollection($oIE, $input) For $o In $allHTMLTags If IsString($o.className) And $o.className = $sClass Then $aRet[0] += 1 ReDim $aRet[$aRet[0] + 1] $aRet[$aRet[0]] = $o EndIf Next Return $aRet EndFunc ;==>_IEGetObjByClass Burda İnputtun bulundugu div buluyorum ama inputta yazı yazdıramıyorum http://n1305.hizliresim.com/19/1/mns18.jpg Edited May 2, 2013 by panceh Quote Link to comment Share on other sites More sharing options...
asmazh Posted May 1, 2013 Share Posted May 1, 2013 Böyle bir şeyi hiç yapmadım ama yapılabilir bence. IE.au3 kütüphanesini incele. _IEErrorHandlerRegister() _IELoadWaitTimeout()_IECreate()_IEFormGetObjByName()_IEFormElementGetObjByName()_IEFormElementSetValue()_IEAction() Aha da bu komutları güzel bir incelersen yaparsın. (İnternet Explorer üzerinden.) Quote Link to comment Share on other sites More sharing options...
panceh Posted May 1, 2013 Author Share Posted May 1, 2013 Coğunu inceledim bunların ama elde edilcek bi sonuca ulaşamadım Quote Link to comment Share on other sites More sharing options...
mesale0077 Posted May 1, 2013 Share Posted May 1, 2013 site nerde baksaydık da nerde ne yapılabilinir bakmak lazım Quote Link to comment Share on other sites More sharing options...
Lastman Posted May 1, 2013 Share Posted May 1, 2013 autoit bilmiyorum ama mantık yürütecek olursak: eleman tanımlanmamışsa tanımlı olan bi dış elemanı çekip içindekini yazdırabilirsin diye düşünüyorum. Quote Link to comment Share on other sites More sharing options...
MostWanted Posted May 1, 2013 Share Posted May 1, 2013 Sadece class bilgisi ile zor.Çünkü name ile id sadece bir elemana atanabilirken class bi grup elemana atanılır.O yüzden siteyi görmeden bir şey demek zor. Quote Link to comment Share on other sites More sharing options...
panceh Posted May 1, 2013 Author Share Posted May 1, 2013 (edited) [url=[/url] http://n1305.hizliresim.com/19/1/mns18.jpg blogger için deniyodum kaynak kodları resimde gösterdim id name göremedim ben bide siz bakın bakalım Edited May 1, 2013 by panceh Quote Link to comment Share on other sites More sharing options...
panceh Posted May 2, 2013 Author Share Posted May 2, 2013 _IEGetObjByClass şu komut sorumu çözcek sanırsam ama kullamadım hata veriyo Quote Link to comment Share on other sites More sharing options...
blackman12 Posted May 2, 2013 Share Posted May 2, 2013 sitenin linkini yaz buraya ya da pm yolla oradaki G ile başlayan classa bakmak lazım. post işlemi yerine jquery ile veriyi almış olabilir. 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.