Author Topic: a script to easily get the IP of a friend  (Read 8104 times)

0 Members and 1 Guest are viewing this topic.

Offline 80063r

  • Occasional poster
  • *
  • Posts: 40
    • View Profile
Re: a script to easily get the IP of a friend
« Reply #15 on: May 22, 2009, 07:50:30 AM »
Ok, now I have an on-topic question.  Wil the dialog being displayed prevent HFS from serving the get-ip template to someone else before I click OK on the dialog?  Or will it open another dialog on top or close the previous dialog?

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: a script to easily get the IP of a friend
« Reply #16 on: May 22, 2009, 07:55:40 AM »
yes, the "other server" is rejetto.com
it must see you ALL if you want to pass the self-test. it's the big uncle.

{.dialog.} is blocking.
an easy non-blocking alternative is {.add to log.}
or if you need something different you may use {.exec.} to pass the message to anything you like.
you may save the message to a temp file, with date-time as name, and run notepad on it.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: a script to easily get the IP of a friend
« Reply #17 on: May 22, 2009, 08:02:29 AM »
if you refuse the {.add to log.} solution because it will be lost in the mess, ok.
but consider you can use custom colors, and you have a quite usable "search".

Offline 80063r

  • Occasional poster
  • *
  • Posts: 40
    • View Profile
Re: a script to easily get the IP of a friend
« Reply #18 on: May 22, 2009, 02:56:52 PM »
I think I got the hang of it now.

I added:
Code: [Select]
{.append|get-ip.txt|%ip%.}
I'm having fun with this stuff.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: a script to easily get the IP of a friend
« Reply #19 on: May 22, 2009, 03:16:32 PM »
{.append|get-ip.txt|%ip%
.}

to get a new line after the ip

Offline 80063r

  • Occasional poster
  • *
  • Posts: 40
    • View Profile
Re: a script to easily get the IP of a friend
« Reply #20 on: May 22, 2009, 03:19:53 PM »
I need a carriage return in the above code.

Also, I can't figure out the color codes for .add to log.  I searched the forum and the wiki page is blank.  I tried many different types of color codes in upper and lower case and single digit and RGB html.

Oh, thanx.  You posted while I was typing.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: a script to easily get the IP of a friend
« Reply #21 on: May 23, 2009, 01:37:47 AM »
next version will support classic color formats, like blue and #RGB and #RRGGBB
in the while you should use this syntax instead
$BBGGRR

where "$" is exactly the dollar sign, and other 6 characters are similar to the html, but reversed.

Offline 80063r

  • Occasional poster
  • *
  • Posts: 40
    • View Profile
Re: a script to easily get the IP of a friend
« Reply #22 on: May 23, 2009, 06:09:43 AM »
$BBGGRR

Thanks, I wouldn't have guessed that $.