Author Topic: Help with user commands  (Read 2392 times)

0 Members and 1 Guest are viewing this topic.

Offline satya

  • Fulll Member
  • ****
  • Posts: 64
  • Karma: +3/-5
Help with user commands
« on: 24 January, 2009, 08:57:18 »
As we have %[nick] to get the users nick on wich we click, do we have any such thing to get the ip of the same user.

it will be great if i can get a list of all such vars

thanks

Eyes says everything,
Its on you how u read em...

PtokaX forum

Help with user commands
« on: 24 January, 2009, 08:57:18 »

Offline CrazyGuy

  • Viking
  • ****
  • Posts: 506
  • Karma: +83/-20
    • ?????=-_The NightHawk_-=?????
Re: Help with user commands
« Reply #1 on: 24 January, 2009, 13:43:21 »

  • %[mynick]   your own nick
  • %[nick]      the users nick (works in userlist and search window)
  • %[tag]      the users tag (works in userlist and search window)
  • %[description]   the users description (works in userlist and search window)
  • %[email]   the users email (works in userlist and search window)
  • %[share]   the users sharesize in bytes (works in userlist and search window)
  • %[shareshort]   the users sharesize formatted (works in userlist and search window)
  • %[ip]      the users IP, if given by the hub
  • %[file]      selected filename (works in search window only)
  • %[line:<text>]   opens a popup box allowing you to enter a single line text. The title of the box is what you write for "<text>"


Newer clients support a new set of variables as well, but as they don't work with older clients, it's useless scripting them to be broadcasted to all. The above parameters are standardly implemented if I'm correct.

Offline satya

  • Fulll Member
  • ****
  • Posts: 64
  • Karma: +3/-5
Re: Help with user commands
« Reply #2 on: 25 January, 2009, 17:55:59 »
Great thanks a lot guyss

bt the %[ip] Are u sure dat works cos i tried dat n it doesn works, i checkd the usercommands in the DC settings there for ip %[useri4] was specified. Is this good?

i m just askin as i don know abt it!

thanks

Eyes says everything,
Its on you how u read em...

Offline CrazyGuy

  • Viking
  • ****
  • Posts: 506
  • Karma: +83/-20
    • ?????=-_The NightHawk_-=?????
Re: Help with user commands
« Reply #3 on: 25 January, 2009, 20:23:15 »
Great thanks a lot guyss

bt the %[ip] Are u sure dat works cos i tried dat n it doesn works, i checkd the usercommands in the DC settings there for ip %[useri4] was specified. Is this good?

i m just askin as i don know abt it!

thanks

%[useri4] I haven't seen before. It may be in that list from new clients.
%[ip] works but only if the hub send you all users IPs on login. Your client need to support UserIP2 for that, plus your profile must be set to allow to receive IPs.

A workaround may be to download the filelist of the person you want to use the UserCommand on first. Sometimes clients update the %[ip] details then with the IP from the p2p connection.

But it's easier to check hubs settings of course ;)

PtokaX forum

Re: Help with user commands
« Reply #3 on: 25 January, 2009, 20:23:15 »