From WikiChip
/parseline Command - mIRC
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
Template:mIRC menu The /parseline command can be used to inject lines as though mIRC was receiving or sending them from/to IRC servers. It can also be used to modify the line being received/sent from the on parseline event.
Synopsis
/parseline -iotbpnuN [text|&binvar]
/parseline -q[iotbqpnuN] [text|&binvar]
Switches
Required
- -i or -o - Specify an input or output message
- -t or -b - Specify a text or binvar parameter
Optional
- -q - Can be used to add a new line to the end of the in/out queue, they are processed after the end of the script execution.
- Note: Without -q, you're changing the current line from the on parseline event, you'll get an error otherwise.
- -p - Used with -q, indicate the line must trigger on parseline
- -n - Add a $crlf to the end of the lien if the line doesn't already end with a $crlf
- -uN - Enable/Disable utf8 encoding/decoding of the line. Use N = 1 to enable, 0 to disable
- Note: A script must check $parseutf to know whether mIRC will be UTF-8 encoding/decoding a line.
- For outgoing lines, if $parseutf is $true, mIRC will UTF-8 encode the line before sending it to the server after the PARSELINE event. You can prevent this by using -u0.
- For incoming lines, if $parseutf is $true, after the PARSELINE event, mIRC will UTF-8 decode the line before processing it. You can prevent this by using -u0.
Parameters
- [text|&binvar] - The text or binvar parameter depending on if you used the -t or -b switch
Example
//parseline -qitn bipartite.nj.us.SwiftIRC.net PRIVMSG #mIRCScripting :test
Compatibility
Added: mIRC v7.42
Added on: 17 Jul 2015
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also
mIRC commands list