Hi, if anyone could help with parsing certain phrases with #00FF00 color within the miniconsole and turn it into another color, that would be very very helpful.
I attached a image. I would like the green text to be a different color (this is for the miniconsole not the main window).
Phrase Color Triggering for #00FF00 within Miniconsole
Re: Phrase Color Triggering for #00FF00 within Miniconsole
How is the text getting to the miniconsole?
Re: Phrase Color Triggering for #00FF00 within Miniconsole
I attached another screenshot. The text inside the quotes in black are the contents of the text sent to the miniconsole.
The script uses these commands below (not sure if there is more connected) to get and send text to miniconsole:
local comm_data = gmcp.comm.channel
local replaced = ansi2decho(comm_data.msg)
display(comm_data.msg)
local chan = gmcp.comm.channel.chan
if (chan == "All") then
decho("All",replaced .. "\n")--send a copy to "All" tab
end
The script uses these commands below (not sure if there is more connected) to get and send text to miniconsole:
local comm_data = gmcp.comm.channel
local replaced = ansi2decho(comm_data.msg)
display(comm_data.msg)
local chan = gmcp.comm.channel.chan
if (chan == "All") then
decho("All",replaced .. "\n")--send a copy to "All" tab
end
Re: Phrase Color Triggering for #00FF00 within Miniconsole
You could accomplish this by doing
to change it from the green to red for instance. you'll need to use the r,g,b decimal format since it's using ansi2decho and decho. And you'd want to do it ahead of the decho.
Re: Phrase Color Triggering for #00FF00 within Miniconsole
Thank you so much! It works perfectly!
Re: Phrase Color Triggering for #00FF00 within Miniconsole
Glad I could help =)