Jump to content

Web Objesine Butonla Url Load Etmek


yakupnun
 Share

Recommended Posts

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

Link to comment
Share on other sites

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));

...

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...