mIRC Home    About    Download    Register    News    Help

Print Thread
#271854 22/07/23 03:05 AM
Joined: Jan 2022
Posts: 3
D
Self-satisfied door
OP Offline
Self-satisfied door
D
Joined: Jan 2022
Posts: 3
Hi Guys,

Is there anyway i can have //describe $chan automatically come up on the text line so it is me chatting using /me all the time.

I have tried all sorts of things in the remotes but i am just not getting it.

Any help would be greatly appreciated.

Dominatez #271861 23/07/23 03:59 PM
Joined: Jul 2006
Posts: 4,180
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,180
on *:input:#:if(!$istok(/ $comchar,$left($1,1),32)) editbox -ap //describe $chan


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #271874 27/07/23 01:34 AM
Joined: Jan 2022
Posts: 3
D
Self-satisfied door
OP Offline
Self-satisfied door
D
Joined: Jan 2022
Posts: 3
Hi and thanks Wims, but it is throwing up an error.

I type and it throws up the following error in my status screen.

Code
IF(!$ISTOK(/ Unknown command

Dominatez #271875 27/07/23 06:17 AM
Joined: Jul 2006
Posts: 4,180
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,180
I somehow forgot to put a space in there, you need a space between "if" and the '('


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Dominatez #271876 27/07/23 11:14 AM
Joined: Jan 2012
Posts: 321
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 321
Originally Posted by Dominatez
Is there anyway i can have //describe $chan automatically come up on the text line so it is me chatting using /me all the time.


You can try to use any of these scripts variants.

variant 1:
Code
on *:INPUT:#: if (!$istok(/ $comchar,$left($1,1),32)) { //describe $chan $1- | haltdef }

variant 2:
Code
on *:ACTIVE:#: auto_me
on *:INPUT:#: auto_me
alias -l auto_me {
  var %e1 $editbox($active), %e2 $gettok(%e1,1,32), %e3 //me //describe
  if (!$istok(%e3,%e2,32)) { editbox -ap //describe $active %e1 }
}


🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Epic #271877 27/07/23 07:36 PM
Joined: Jul 2006
Posts: 4,180
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,180
Hello

Your first variant might be as effective as what he asked for, but if the idea were to put the text "/describe <$chan>" into the editbox, it's not doing that.
Your second variant is definitely incorrect, by not checking for command being executed starting with / or command char, you're preventing them to execute any command, worse, you're exposing them to risk as "/msg nickserv identify pass" (or any other command anyway) will now be sent to the channel as an action message!!scratch that part. But what's the logic behind not putting back "/describe" into the editbox if they themselves execute a /describe in that channel window?

What he asked for, my variant, might be prefered as it allow the user to control if they want to send as /describe in the end, your first variant would not allow that.

Last edited by Wims; 27/07/23 08:01 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #271915 08/08/23 09:04 AM
Joined: Jan 2012
Posts: 321
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 321
Hello

Originally Posted by Wims
But what's the logic behind not putting back "/describe" into the editbox if they themselves execute a /describe in that channel window?

To make it easier, as if this it was done originally for sending messages.

I just added a few more variants. Perhaps he did not know that he could do it this way. Now he has plenty to choose from.

I now have very little free time and therefore no time to conduct deep tests. But on a short test everything worked well.
If the author of the post in the process of using the script reveals some shortcomings or errors, then let him write about it.


🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples

Link Copied to Clipboard