UserCommand
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

UserCommand

Started by Pieltre, 09 February, 2004, 05:16:27

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pieltre

Hi,

I use a right click script called UserCommand. It's pretty known I believe, since I've seen it on many hubs.  I added a number of commands and all of them work, except those that are built in DC++.   So all the /commands, like /g or /away, even if they appear syntaxically in the same way when typed manually or performed via a right click, never do anything.  I'd like to know if that can be resolved...  Here's a part of my script, which isolates some of those DC++ commands:

-- UserCommand extension script for PtokaX by Gadget
function NewUserConnected(curUser)
  curUser:SendData("$UserCommand 255 7")
  curUser:SendData("$UserCommand 0 3")
  curUser:SendData("$UserCommand 1 3 *** "..frmHub:GetHubName().." (PtokaX) ***$<%[mynick]> +rules|")
  curUser:SendData("$UserCommand 1 3 Hub rules$<%[mynick]> +rules|")
  curUser:SendData("$UserCommand 1 3 Show Help menu$<%[mynick]> +help|")
  curUser:SendData("$UserCommand 1 3 Show users with free slot$<%[mynick]> +slot|")
  curUser:SendData("$UserCommand 1 3 Refresh my Share$<%[mynick]> /refresh|")
  curUser:SendData("$UserCommand 1 3 away from keyboard (afk)$<%[mynick]> +afk %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 3 Returned (re)$<%[mynick]> +re %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 3 Search Google$<%[mynick]> /g %[line:Enter a subject]|")
  curUser:SendData("$UserCommand 1 3 Search IMDB$<%[mynick]> /imdb %[line:Enter a movie]|")
end

thanks in advance,
pieltre

TiMeTrAVelleR

This is how a line looks in dc++ you can add them manuali



Hope it helps

Pieltre

hi,

I thank you for your reply, but perhaps I haven't made myself very clear.  I can correctly add all the commands that my bots or Ptokax perform, but what i can't add are all the commands that are built in DC++.  Commands such as /fav (add this hub to favorites) or /away or /g (search google).  For some reasons, those commands can be written in the main chat when you do a right click, but nothing happens.  

Any solutions?

thanks,
pieltre

nErBoS

#3
Let me see if I understtod you are saying that you have the comands of DC++ and you manualy add to your right click comands ???

If yes, well i think that will not work, but you can see here...

http://dcplusplus.sourceforge.net/forum/index.php

Best regards, nErBoS
--## nErBoS Spot ##--

Pieltre

#4
Hi,

This is hard to get through, but I'll try to make myself understood better.  I use a script that performs in a right click all available commands from Ptokax or any bots I have. I only have to write in my script the command in raw and they can then be performed by a right click the same way it would be performed when written manually in the main chat.  I can do that correctly with all my commands, except those that are 'built in' DC++.  Those commands include /away /back /g /imdb /fav, and so on.  For some reason, when my right click script performs those commands in the main chat, nothing happens.  Of course, if I perform them manually in the main chat, they work fine...  For all I know those DC++ commands seem to be correctly written in my script, but I must obviously be missing something.

Thanks again for your help,
Pieltre

nErBoS

Can you show us all the script ??
--## nErBoS Spot ##--

Pieltre

Hi,

thanks again for your patience.  So, here's the complete script.  Two things. First, it's devided in two series, the first for the reg users and the second for the OPs.  Every command you see listed there is performed by one of my bots.  Except, of course, for the darn DC++ commands.  So here it is:

-- UserCommand extension script for PtokaX by Gadget
function NewUserConnected(curUser)
  curUser:SendData("$UserCommand 255 7")
  curUser:SendData("$UserCommand 0 3")
  curUser:SendData("$UserCommand 1 3 *** "..frmHub:GetHubName().." (PtokaX) ***$<%[mynick]> +rules|")
  curUser:SendData("$UserCommand 1 3 Hub rules$<%[mynick]> +rules|")
  curUser:SendData("$UserCommand 1 3 Show Help menu$<%[mynick]> +help|")
  curUser:SendData("$UserCommand 1 3 Show users with free slot$<%[mynick]> +slot|")
  curUser:SendData("$UserCommand 1 3 What time is it?$<%[mynick]> +time|")
  curUser:SendData("$UserCommand 1 3 What's my IP address?$<%[mynick]> +myip|")
  curUser:SendData("$UserCommand 1 3 Show Grand Network's Hublist$<%[mynick]> +Grand_Network|")
  curUser:SendData("$UserCommand 1 3 Refresh my Share$<%[mynick]> /refresh|")
  curUser:SendData("$UserCommand 1 3 away from keyboard (afk)$<%[mynick]> +afk %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 3 Returned (re)$<%[mynick]> +re %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 3 Search Google$<%[mynick]> /g %[line:Enter a subject]|")
  curUser:SendData("$UserCommand 1 3 Search IMDB$<%[mynick]> /imdb %[line:Enter a movie]|")
end
function OpConnected(curUser)
  curUser:SendData("$UserCommand 255 7")
  curUser:SendData("$UserCommand 0 3")
  curUser:SendData("$UserCommand 1 3 *** "..frmHub:GetHubName().." (PtokaX) ***$<%[mynick]> +rules|")
  curUser:SendData("$UserCommand 1 2 Hub rules$<%[mynick]> +rules|")
  curUser:SendData("$UserCommand 1 2 Help$<%[mynick]> +help|")
  curUser:SendData("$UserCommand 1 2 Slot$<%[mynick]> +slot|")
  curUser:SendData("$UserCommand 1 2 Refresh my Share$<%[mynick]> /refresh|")
  curUser:SendData("$UserCommand 1 2 away from keyboard (afk)$<%[mynick]> +afk %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 2 Returned (re)$<%[mynick]> +re %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 2 Search Google$<%[mynick]> /g %[line:Enter a subject]|")
  curUser:SendData("$UserCommand 1 2 Search IMDB$<%[mynick]> /imdb %[line:Enter a movie]|")
  curUser:SendData("$UserCommand 1 2 Show user info$<%[mynick]> !getinfo %[nick]|")
  curUser:SendData("$UserCommand 1 2 Show user history$<%[mynick]> !userinfo %[nick]|")
  curUser:SendData("$UserCommand 1 2 Show Grand Network's Hublist$<%[mynick]> +Grand_Network|")
  curUser:SendData("$UserCommand 1 2 Mass Message$<%[mynick]> +mm %[line:Enter message]|")
  curUser:SendData("$UserCommand 1 2 Mass Message OPs$<%[mynick]> +mmops %[line:Enter message]|")
  curUser:SendData("$UserCommand 1 2 Gag user$<%[mynick]> !gag %[nick]|")
  curUser:SendData("$UserCommand 1 2 Ungag user$<%[mynick]> !ungag %[nick]|")
  curUser:SendData("$UserCommand 1 2 Drop user$<%[mynick]> !drop %[nick]|")
  curUser:SendData("$UserCommand 1 2 Ban and kick user$<%[mynick]> !ban %[nick] %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 2 Ban user$<%[mynick]> !nickban %[nick]|")
  curUser:SendData("$UserCommand 1 2 Ban username...$$Ban %[line:Enter an ip to ban] %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 2 Ban IP...$<%[mynick]> !banip %[line:Enter an IP to ban]|")
  curUser:SendData("$UserCommand 1 2 Unban user or ip...$<%[mynick]> !unban %[line:Enter an IP or name to unban]|")
  curUser:SendData("$UserCommand 1 2 Clear all temp bans$<%[mynick]> !clrtempban|")
  curUser:SendData("$UserCommand 1 2 Clear all perm bans$<%[mynick]> !clrpermban|")
  curUser:SendData("$UserCommand 1 2 Flood$<%[mynick]> +flood|")
  curUser:SendData("$UserCommand 1 2 Show ban list$<%[mynick]> !getbanlist|")
  curUser:SendData("$UserCommand 1 2 Search IP$<%[mynick]> !ipinfo %[line:Enter an IP to search]|")
  curUser:SendData("$UserCommand 1 2 Search IP range$<%[mynick]> !iprangeinfo %[line:Enter an IP range to search]|")
  curUser:SendData("$UserCommand 1 2 Restart Hub$<%[mynick]> !restart|")
  curUser:SendData("$UserCommand 1 2 Restart Scripts$<%[mynick]> !restartscripts|")
  curUser:SendData("$UserCommand 1 2 Op for one session$<%[mynick]> !op|")

end



If you consider only the first serie, the one that appears in the right click of my reg users, the command lines that don't work are those ones:

curUser:SendData("$UserCommand 1 3 Refresh my Share$<%[mynick]> /refresh|")

curUser:SendData("$UserCommand 1 3 Search Google$<%[mynick]> /g %[line:Enter a subject]|")

and

  curUser:SendData("$UserCommand 1 3 Search IMDB$<%[mynick]> /imdb %[line:Enter a movie]|")



When I use those commands via the right click menu, what I see in the main chat is say "/imdb test" if I enter as a movie "test".  But further than that, nothing happens.  The default browser doesn't open and no IMDB search is launched...

why is that?

Cheers,
Pieltre

VidFamne

Maybe a dumb question, but do You have the right command-prefix?
Ptokax used to have a "!" as prefix. :)

Sedulus

uh?
/refresh, /imdb and /g are (o)DC(++) commands. they will not work using usercommands, as they are processed somewhere else than keyboard input.

usercommands:
void HubFrame::runUserCommand(UserCommand& uc) {
(...snip...)
                        client->send(Util::formatParams(uc.getCommand(), ucParams));
the above is sent to the client (i.e. the hub connection) immediately
keyboard input:
void HubFrame::onEnter() {
(...snip...)
                        if(WinUtil::checkCommand(cmd, param, message, status)) {
                                if(!message.empty()) {
                                        client->sendMessage(message);
                                }
                                if(!status.empty()) {
                                        addClientLine(status);
                                }
(...snip...)
bool WinUtil::checkCommand(string& cmd, string& param, string& message, string& status) {
(...snip...)
        } else if(Util::stricmp(cmd.c_str(), "imdb") == 0) {
                if(param.empty()) {
                        status = STRING(SPECIFY_SEARCH_STRING);
                } else {
                        WinUtil::openLink("http://www.imdb.com/find?q="+param);
                }

HaArD

#9
This question really belongs to the developers of the client, I'm assuming it's DC++.

When you execute a User Command the Client can only do one thing, Send RAW Data to a connected Hub. That RAW data can be formatted so that it appears in Main Chat or in a PM to a specified User/Bot. There is also an option to specify that it should only be sent once for a given nick. For instance, if you selected several items in a search panel and used a KICK-BAN command you'd only want to send it once for each user.

N.B. There is no option to send data to DC++ itself as of v.306

The commands you are trying to do are Client commands and the Client handles those commands when they are type into Main Chat or a PM window before it decides whether or not to send the typed text to the hub. That's why you can refresh your filelist without everyone on the hub seeing "/refresh" every time.

So in short, you cannot do what you are trying to do.  

For more info about UserCommand structure/syntax etc go here: DC++ Wiki - UserCommand

*Edit*
Damn Sedulus you posted while I was writing.... and you quoted Source Code too... what a smartass!  :P  :D  :P
*/Edit*

Pieltre

Hi,

thanks all for your replies, it explains the issue very well.  Now, since I've seen the 'imdb' command on a right click in some hub, I assume they use an independant script or bot that performs that command, without using the Client commands.  Now, my question would be about such scripts.  Do you know any bot/script that could do commands such as /g (google search) or /imdb (internet movie database search)?

thanks in advance again,

pieltre

Pieltre

Hi,

Sorry for the last post, I hadn't checked correctly.  I found this IMDB script, but for some reason, I can't get it to work.  I notice one thing, it's the mention of Mozilla/4.0 somewhere around the middle. Should I conclude that this command will only work for Mozilla users and not for IExplorer or Opera?  Here's the script:

--imdb.freedb.http-V.1.lua by chilla
--------------------------------------------------------------------------------------------------------------------------
bot = "Bach"
ifPrefix = "%!%+%-%?"
cmd1 = "imdb"
cmd2 = "freedb"
ifhelp = "\tPrefixa: ! - + ?\r\n\tSyntax: Prefix\""..cmd1.."\" Movie\r\n\tSyntax: Prefix\""..cmd2.."\" Artist\r\n\tSyntax: Prefix\""..cmd2.."\" Artist Album\r\n"
--------------------------------------------------------------------------------------------------------------------------
-- This shows also an album when search in freedb when set to value 1
showAlbum = 1
--------------------------------------------------------------------------------------------------------------------------
function DataArrival(curUser,data)
   if (strsub(data,1,1) == "<") then
      data = strsub(data,1,strlen(data)-1)
      local _,_,cmd = strfind( data, "%b<>%s["..ifPrefix.."](%S+)" )
      if (cmd and strlower(cmd) == strlower(cmd1)) then
         local _,_,str1 = strfind(data,"%b<>%s+%S+%s+(.*)")
         if str1 then
            curUser:SendData(bot,GetImdbEntry(str1))
         else
            curUser:SendData(bot,ifhelp)
         end
         return 1
      elseif (cmd and strlower(cmd) == strlower(cmd2)) then
         local _,_,str1 = strfind(data,"%b<>%s+%S+%s+(.*)")
         if str1 then
            local sItem1 = gsub(str1,"%s","%+")
            sItem1 = "freedb_search.php?words="..sItem1.."&allfields=NO&fields=artist&allcats=YES&grouping=none"
            curUser:SendData(bot,GetFreeDBEntry(str1,sItem1))
         else
            curUser:SendData(bot,ifhelp)
         end
         return 1
      end
   end
end   
--------------------------------------------------------------------------------------------------------------------------
--         **FUNCS**
--------------------------------------------------------------------------------------------------------------------------
function GetFreeDBEntry(str1,shttp,ret)

   local set,httpn,sAlbum,host = 0,"","","www.freedb.org"

   GETHTML = "GET /"..shttp.." HTTP/1.1\r\nHost: "..host.."\r\nUser-Agent: Mozilla/4.0 (compatible; LUA 4.0; LUA 4.0)\r\n"

   socket, e = connect(host, 80)
   local msg = ""
   local msg2 = ""
   if not e then
      local line = ""
      socket:timeout(2)
      socket:send(GETHTML..strchar(13,10))
      local handle = openfile("test2.html","w")
      while not e do
         line1, e = socket:receive("*l")
         write(handle,line1.."\r\n")
         if strfind(line1,"

(.*)

") then
            _,_,sAlbum = strfind(line1,"

(.*)

")
         end
         if line1 == "" then
            while line1 ~= "
" do
               line1, e = socket:receive("*l")
               write(handle,line1.."\r\n")
               if strfind(line1, "(.*)

") then
                  local _,_, httpt,sname = strfind(line1, "(.*)

")
                  if set == 0 then
                     httpn = httpt
                     set = 1
                  end
                  msg = msg.."\tAlbum: "..sname.."        Site:    http://www.freedb.org/"..httpt.."\r\n"
               end
               if strfind(line1,"(.*)%.%s(%S+)(.*)") then
                  local _,_,track,length,title = strfind(line1,"(.*)%.%s(%S+)(.*)")
                  msg2 = msg2.."\t"..track..". "..title.."  ( "..length.." )\r\n"
               end
            end
         end
      end
      closefile(handle)
      socket:close()
   end
   print(e,i)
   if set == 1 and showAlbum == 1 then
      msg = msg.."\r\n\r\n"..GetFreeDBEntry("X",httpn,1)
   end
   if msg ~="" then
      msg = "\tSearchItem :   "..str1.."\r\n\r\n"..msg      
   end
   if msg2 ~= "" then
      msg2 = "\tAlbum:   "..sAlbum.."\r\n\r\n"..msg2
   end
   if ret == 1 then
      return msg2
   else
      return msg
   end
end
--------------------------------------------------------------------------------------------------------------------------
function GetImdbEntry(sItem)

   GETHTML = "GET /Tsearch?title="..sItem.." HTTP/1.1\r\nHost: //www.imdb.com\r\nUser-Agent: Mozilla/4.0 (compatible; LUA 4.0; LUA 4.0)\r\n"

   socket, e = connect("www.imdb.com", 80)
   local msg = "\r\n"
   if not e then
      local line = ""
      socket:timeout(2)
      socket:send(GETHTML..strchar(13,10))
      local handle = openfile("test.html","w")
      while not e do
         line1, e = socket:receive("*l")
         write(handle,line1.."\r\n")
         if line1 == "

Movies

" then
            line1, e = socket:receive("*l")
            write(handle,line1.."\r\n")
            while line1 ~= "" do
               _,_,httpt,mname = strfind(line1,".*=\"(%S+)\">(.*).*")
               if httpt and mname then
                  msg = msg.."\t"..mname.."       Site:   http://www.imdb.com"..httpt.."\r\n"
               end
               line1, e = socket:receive("*l")
               write(handle,line1.."\r\n")
            end
            
         end
      end
      closefile(handle)
      socket:close()
   end
   return "\tSearched Movie:  "..sItem.."\r\n\r\n\tResults:\r\n"..msg



cheers,
pieltre

Pieltre

Hi,

Seems nobody is replying on the IMDB script, even the guy who made it, so I'll skip that part for now.  I have, instead, another question concerning the Usercommand script.  As it is now, all my commands are sent in the main chat and that is a pain.  I tried rewriting the code so it would send the command to the appropriate bot, but all it does, when I perform the right click command, is disconnect me.... here's what I have for one of those commands:

  curUser:SendData("$UserCommand 1 2 Mass Message$$To: Bot <%[mynick]> +mm %[line:Enter message]|")

what am I doing wrong?

thanks in advance,
Pieltre

HaArD

QuoteOriginally posted by HaArD
For more info about UserCommand structure/syntax etc go here: DC++ Wiki - UserCommand

Did you visit that link? The answers you seek are already there.........

yepyepyep4711

hi there,

at the same time I'm very interested in this script, and at the same time I don't get it :P

What is it suppose to do? Change the righ click choices of the client? Wouln't you have to change the client for it?

*lovestounderstand* :D

HaArD

One might wonder...

What is the point of providing a link to the answers if no one bothers to click it and read what's there  .... *sigh*

Pieltre

Hi,

I read that link, thanks.  It did help, but not entirely.  The whole problem about this seems to lie in the fact that what I'm doing here is using script, not a client, that allows to force a standard right click menu on all the users connected to my hub.  So, whatever client you use, when my script is on, you automatically have in a right click menu, the list of all the available commands in my hub (at least all those that I entered).  

As such, the scripts works fine. It's rather simple to configure, except for the two problems I mentioned earlier.   I still haven't found anyways to solve them. But I found a way to elude them.  The first is to use an indenpendant script that performs the IMDB command, instead of relying on the DC++ commands (which is an input command and therefore doesn't go through the hub).  The second way was to get my commands not to be sent to the bots that perform them, but simply to get them to be performed"silently".  For that, I had to rearrange my scripts a lot and finally opted for Robocop.  
So, to resume the last part.  Using Robocop, I now have all my old commands performed without everybody seeing them in the main chat and I also have them listed in a right click menu (since all the robocop commands were easy to enter in my script). I paste here my script (divided in two menus, one for the Reg users and one for the OP/Master).  

-- UserCommand extension script for PtokaX by Gadget
function NewUserConnected(curUser)
  curUser:SendData("$UserCommand 255 7")
  curUser:SendData("$UserCommand 0 3")
  curUser:SendData("$UserCommand 1 3 *** "..frmHub:GetHubName().." (PtokaX) ***$<%[mynick]> +rules|")
  curUser:SendData("$UserCommand 1 3 Hub rules$<%[mynick]> !rules|")
  curUser:SendData("$UserCommand 1 3 Show available commands$<%[mynick]> !userhelp|")
  curUser:SendData("$UserCommand 1 3 Show DC++ FAQ$<%[mynick]> !faq|")
  curUser:SendData("$UserCommand 1 3 Show users with free slot$<%[mynick]> !slot|")
  curUser:SendData("$UserCommand 1 3 What's my IP address?$<%[mynick]> !myip|")
  curUser:SendData("$UserCommand 1 3 How long was I here?$<%[mynick]> !myhubtime|")
  curUser:SendData("$UserCommand 1 3 Show Grand Network's Hublist$<%[mynick]> !network|")
  curUser:SendData("$UserCommand 1 3 Last seen here...$<%[mynick]> !seen %[line:Enter a nickname]#124;")
  curUser:SendData("$UserCommand 1 3 Away from Keyboard (afk)$<%[mynick]> !away %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 3 Back to keyboard$<%[mynick]> !back %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 3 Report Fakers$<%[mynick]> !report %[line:nickname]|")

end
function OpConnected(curUser)
  curUser:SendData("$UserCommand 255 7")
  curUser:SendData("$UserCommand 0 3")
  curUser:SendData("$UserCommand 1 3 *** "..frmHub:GetHubName().." (PtokaX) ***$<%[mynick]> +rules|")
  curUser:SendData("$UserCommand 1 2 Hub rules$<%[mynick]> !rules|")
  curUser:SendData("$UserCommand 1 2 Hub Statistics$<%[mynick]> !hstat|")
  curUser:SendData("$UserCommand 1 2 Show Grand Network's Hublist$<%[mynick]> !network|")
  curUser:SendData("$UserCommand 1 2 Available Commands$<%[mynick]> !help|")
  curUser:SendData("$UserCommand 1 2 Slot$<%[mynick]> !slot|")
  curUser:SendData("$UserCommand 1 2 Away From Keyboard$<%[mynick]> !away %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 2 Back to Keyboard$<%[mynick]> !back %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 2 Mass Message$<%[mynick]> !mass %[line:Enter message]|")
  curUser:SendData("$UserCommand 1 2 Register User$<%[mynick]> !reg %[line: enter a nickname] %[line:Enter a password]|")
  curUser:SendData("$UserCommand 1 2 Upgrade a User's status$<%[mynick]> !upgrade %[nick] %[line:reg/vip/op/master]|")
  curUser:SendData("$UserCommand 1 2 Show user Info$<%[mynick]> !info %[nick]|")
  curUser:SendData("$UserCommand 1 2 Show user History$<%[mynick]> !userinfo %[nick]|")
  curUser:SendData("$UserCommand 1 2 Show Registered Users$<%[mynick]> !showreg|")
  curUser:SendData("$UserCommand 1 2 Search IP$<%[mynick]> !ipinfo %[line:Enter an IP to search]|")
  curUser:SendData("$UserCommand 1 2 Search IP Range$<%[mynick]> !iprangeinfo %[line:Enter an IP range to search]|")
  curUser:SendData("$UserCommand 1 2 Show ban List$<%[mynick]> !getbanlist|")
  curUser:SendData("$UserCommand 1 2 Gag User$<%[mynick]> !gag %[nick]|")
  curUser:SendData("$UserCommand 1 2 Ungag User$<%[mynick]> !ungag %[nick]|")
  curUser:SendData("$UserCommand 1 2 Drop User$<%[mynick]> !drop %[nick]|")
  curUser:SendData("$UserCommand 1 2 Warn User (3 warnings=ban)$<%[mynick]> !warn %[nick]|")
  curUser:SendData("$UserCommand 1 2 Watch this User...$<%[mynick]> !watch %[line:Enter nickname]|")
  curUser:SendData("$UserCommand 1 2 Stop Watching!$<%[mynick]> !watchoff|")
  curUser:SendData("$UserCommand 1 2 Ban and Kick User$<%[mynick]> !kill %[nick] %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 2 Ban IP...$<%[mynick]> !banip %[line:Enter an IP to ban]|")
  curUser:SendData("$UserCommand 1 2 Unregister User$<%[mynick]> !delreguser %[line:Enter nickname]|")
  curUser:SendData("$UserCommand 1 2 Flood$<%[mynick]> +flood %[line:Enter a reason]|")
  curUser:SendData("$UserCommand 1 2 Unban User or IP...$<%[mynick]> !unban %[line:Enter an IP or name to unban]|")
  curUser:SendData("$UserCommand 1 2 Clear all Temp Bans$<%[mynick]> !clrtempban|")
  curUser:SendData("$UserCommand 1 2 Clear all Perm Bans$<%[mynick]> !clrpermban|")
  curUser:SendData("$UserCommand 1 2 Restart Hub$<%[mynick]> !restart|")
  curUser:SendData("$UserCommand 1 2 Restart Scripts$<%[mynick]> !restartscripts|")

end


Oh, and I forget, the guy who made the IMDB script, just posted an alternative version that does the same with Google...

cheers,
Pieltre

yepyepyep4711

QuoteOriginally posted by Pieltre
Oh, and I forget, the guy who made the IMDB script, just posted an alternative version that does the same with Google...

cheers,
Pieltre

Who, and where? :D

And by the way, this script is so awesome I can't believe noone's reacting. It must old news or something ?(

Maybe you'd care to explain what the numbers after "$UserCommand" means though (255, 7, 1, 3, ect.). That'd be nice. Thx.

Pieltre

#18
Hi yepyepyep4711,

Check the link that HaArd posted two or three replies above, it explains how the script works.  As for the Imdb and the Google search, check this  in 'finished scripts'.  If you can get it to work, you can obviously add it to the right click command menu... As for myself, I need to check it again, since so far, it doesn't seem to work...

regards,
Pieltre

((UKSN))shad_dow

Cheers Hard for the Link as i too use gadgets user.command script :)
creator of Therapy-X? bot

yepyepyep4711

QuoteOriginally posted by Pieltre
Hi yepyepyep4711,

Check the link that HaArd posted two or three replies above, it explains how the script works.  As for the Imdb and the Google search, check this  in 'finished scripts'.  If you can get it to work, you can obviously add it to the right click command menu... As for myself, I need to check it again, since so far, it doesn't seem to work...

regards,
Pieltre

Thx alot, I *should* read more. Hope you got it to work, it works for me and it's quite a help. Wooshman showed me you could put the complete raw commands in one text file and post it in one go, also.

SMF spam blocked by CleanTalk