Jump to content

Ip Yazdırma


Kral__
 Share

Recommended Posts

Gerekli Objeler;

 

xButton

Label

Paragraph

 

Kod;

 

xButton>On Click

HTTP.Download("http://checkip.dyndns.org", "C:\\ip.ini", MODE_BINARY, 20, 80, nil, nil, nil);
result = TextFile.ReadToString("C:\\ip.ini");
Paragraph.SetText("Paragraph1", result);
resul = Paragraph.GetText("Paragraph1");
resu = String.Replace(resul, "<html><head><title>Current IP Check</title></head><body>Current IP Address: ", "", false);
Paragraph.SetText("Paragraph1", resu);
res = Paragraph.GetText("Paragraph1");
re = String.Replace(res, "</body></html>", "", false);
Paragraph.SetText("Paragraph1", re);
r = Paragraph.GetText("Paragraph1");
Label.SetText("Label1", r);

Yaptırdığımız iş siteyi indirip sadece ip yi çektirmek oluyor :)

Link to comment
Share on other sites

bukadar koda hiç gerek yok :)

local sIP = HTTP.Submit("http://checkip.dyndns.org", {}, SUBMITWEB_GET, 20, 80, nil, nil):match(":(.-)<");
Dialog.Message("IP", sIP);
Edited by milano88
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...