mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2006
Posts: 7
O
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
O
Joined: Mar 2006
Posts: 7
I'm currently passing song information from Winamp to mIRC using the Nullsoft mIRC control plugin. I then use regular expressions to format/remove bits of $1- as necessary.

However I have found that if the song information passed to mIRC contains a pipe symbol | inside it, then it tries to execute everything after the pipe symbol as a new command.

Example:
Quote:
Futureshock - On My Mind [ Last 10 tracks and mix info available at www.m1live.com/lastten.aspx | M U S I C O N E]


In the above example, it tries to execute the "M" after the pipe as a command.

Is there a way around this? I see no way to strip out the pipe before it is passed to mIRC in the Nullsoft plugin.

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
That would have to be changed in the dll. Report a bug and tell him to replace | with $eval(|,0) or $chr(124) (assuming he's using SendMessage() )

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
out of curiousity, could he use a $replace(string,$chr(124),-)

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Not if the person is using SendMessage() to send commands to mIRC.

Joined: Feb 2006
Posts: 4
T
Self-satisified door
Offline
Self-satisified door
T
Joined: Feb 2006
Posts: 4
you can try:
/noop
(No operation)
but might not work in this contex

Outputting from IRC, you can use a if $chr(124) isin blah
evulate it to 0

Last edited by TheXX; 23/03/06 03:39 AM.
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
None of this will work because it is mIRC itself executing the command, not a script. You cannot fix this problem by scripting.


Link Copied to Clipboard