yakupnun Posted April 15, 2015 Share Posted April 15, 2015 merhaba be bir veb objesine buton kullanarak bazı urlleri lod etmek istiyorum ancak sorunum şu urlyi txt dosyasındaki listeye göre load etmek istiyorum mesela url.txt deki 1. satırdaki url 1. butona 2. satırdaki url 2.butona 3. satırdaki url 3.butona projemin apz dosyası burada bana yöntemini gösterirseniz sevinirim daha önce hiç txt veya ini dosyalarıyla çalışmadım https://drive.google.com/file/d/0B9PY48qXnHzyVmtrNFBXQVF2amc/view?usp=sharing Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted April 15, 2015 Editor Share Posted April 15, 2015 <WebBrowser>.Navigate("urladresi"); şeklinde istediğin butondan webbrowser a url yükleyebilirsin. Quote Link to comment Share on other sites More sharing options...
yakupnun Posted April 15, 2015 Author Share Posted April 15, 2015 butonala urle yükleye biliyorum ama txt dosyasındaki satırlardan urlyi cekemeiyorum önekte mevcut anlatmak istediğim. ilginiz içi teşekkürler pairs Quote Link to comment Share on other sites More sharing options...
KintaRo Posted April 15, 2015 Share Posted April 15, 2015 url.txt içeriği: http://www.google.com http://www.yahoo.com http://www.tnctr.com Global Functions: function urlYukle(satir) tDosya = TextFile.ReadToTable("AutoPlay\\Docs\\url.txt") if tDosya then return tDosya[satir]; else Dialog.Message("Hata", "Dosya içeriği boş"); end end Button1: Web.LoadURL("Web1", urlYukle(1)); Button2 Web.LoadURL("Web1", urlYukle(2)); ... Quote Link to comment Share on other sites More sharing options...
yakupnun Posted April 15, 2015 Author Share Posted April 15, 2015 çok teşekkür edrim 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.