07-06-2009, 02:22 PM
Nope, only local is returned.
Anyway, i managed to do it by a workaround :
d.InitFromWeb("http://votreip.free.fr/")
str s=d.GetText
str n
str pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"
if(findrx(s pattern 0 8 n)<0) out "does not match"; ret
n.trim(pattern)
out "Mon IP Publique est %s" n
Anyway to improve it?
Now, I tried to compile it as an exe.
I get an error on launching the program : Error (RT) in HtmlDoc.InitFromText: 0x80040154, Classe non enregistrée
Help?
kind regards,
Laurent.
Anyway, i managed to do it by a workaround :
d.InitFromWeb("http://votreip.free.fr/")
str s=d.GetText
str n
str pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"
if(findrx(s pattern 0 8 n)<0) out "does not match"; ret
n.trim(pattern)
out "Mon IP Publique est %s" n
Anyway to improve it?
Now, I tried to compile it as an exe.
I get an error on launching the program : Error (RT) in HtmlDoc.InitFromText: 0x80040154, Classe non enregistrée
Help?
kind regards,
Laurent.
