PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: Shurlock on 08 April, 2005, 02:05:53

Title: Pulldown options?
Post by: Shurlock on 08 April, 2005, 02:05:53
I wonder if - within LUA5 - it is possible to use pulldown options in the query box.

At present the query box will allow you to enter parameters to the user-commands in the menu, but I would like to have some of them already available using pulldown.

If this is possible, I would very much appreciate a simple example.

Thnx in advance!
Title:
Post by: plop on 12 April, 2005, 00:19:04
QuoteOriginally posted by Shurlock
I wonder if - within LUA5 - it is possible to use pulldown options in the query box.

At present the query box will allow you to enter parameters to the user-commands in the menu, but I would like to have some of them already available using pulldown.

If this is possible, I would very much appreciate a simple example.

Thnx in advance!

thats more a feature request for dc++, as that handles the usercommands.
lua just sends them and processes the results.

plop
Title:
Post by: Herodes on 12 April, 2005, 00:28:29
--- A command on the Menu
user:SendData( "$UserCommand 1 3 The command$<%[mynick]> This is from the 1st Level of the menu..|")

-- A Command from the 2nd Level inside the menu
user:SendData( "$UserCommand 1 3 Level One\\The command$<%[mynick]> This is from the 2nd level inside the menu..|")

-- A Command from the 3rd Level inside the menu
user:SendData( "$UserCommand 1 3 Level One\\LevelTwo\\The command$<%[mynick]> This is from the 3rd level inside the menu..|")

the | at the end of each of those is the character ' | ' that is the delimiter of the DC Protocol Commands. It is converted to | in order for the client to get it right on its display. ( In other words this is how DC++ sends an  ' | ' )
Look close and you'll find it out .. mybe this documentation (http://dcplusplus.sourceforge.net/wiki/index.php/UserCommand%20command) will be helpfull