rejetto forum

a script to easily get the IP of a friend

rejetto · 23 · 15103

0 Members and 1 Guest are viewing this topic.

Offline 80063r

  • Occasional poster
  • *
    • Posts: 40
    • View Profile
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: 13510
    • View Profile
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: 13510
    • View Profile
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
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: 13510
    • View Profile
{.append|get-ip.txt|%ip%
.}

to get a new line after the ip


Offline 80063r

  • Occasional poster
  • *
    • Posts: 40
    • View Profile
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: 13510
    • View Profile
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.