mIRC Homepage

mirc reading pipes as dividers.can it be disabled?

Posted By: CSC2YA

mirc reading pipes as dividers.can it be disabled? - 02/09/09 07:14 PM

I'm trying to do a basic script that simply messages chanserv to reset a channel topic:

The code i've got as a menu item to do this is:

Code:
set #4-irc topic: /msg chanserv topic #4-irc Welcome To 4-IRC. This Room Is ENGLISH ONLY !! For All Other Languages Please Join #TheWorld | The 4-IRC Website Is Now Online As Well As The WebChat. Please Feel Free To Visit And Sign Up On http://www.4-IRC.Com


However, due to the pipes, it reads the code as seperate parts when it executes the script obviously, and errors partway through.

I'm wondering if there's any way to turn off that part of how mirc scripting works temporarily, then turn it back on afterwards?

At the moment, i'm going into the script editor, copying the code into the clipboard, then pasting it in the status window, which works, but when running it as a script, it doesn't for obvious reasons.
Posted By: Wims

Re: mirc reading pipes as dividers.can it be disabled? - 02/09/09 07:18 PM

Use $(|) instead of simple |
Posted By: CSC2YA

Re: mirc reading pipes as dividers.can it be disabled? - 02/09/09 07:21 PM

Thanks....I had the feeling it was possible, but didn't know how. You learn something new every day.
Posted By: Tomao

Re: mirc reading pipes as dividers.can it be disabled? - 03/09/09 04:01 AM

You can also use the line break identifier to chop up the command into segments:
Code:
set #4-irc topic: /msg chanserv topic #4-irc Welcome To 4-IRC. $&
This Room Is ENGLISH ONLY !! For All Other Languages Please Join #TheWorld $&
The 4-IRC Website Is Now Online As Well As The WebChat. $&
Please Feel Free To Visit And Sign Up On http://www.4-IRC.Com
The script will execute successfully like this.
© 2020 mIRC Discussion Forums