|
Enathe Novice
Joined: 17 Nov 2001 Posts: 34 Location: USA
|
Posted: Fri Apr 08, 2005 3:02 pm
Trigger from Color |
Hey all,
Trying to make a trigger based on the color of a word. Output looks like this:
[Left Right]
At different times either the left or the right will be colored red. I am supposed to yank to the one that is NOT red.
Any suggestions would be great.
Thanks
Enathe |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Fri Apr 08, 2005 4:02 pm |
You could make this overly complicated if you wanted to but I always did prefer the quick and dirty solutions to these things...
#TRIGGER {^~[%e[1;31mLeft%e[0m} {#SEND {right}}
#TRIGGER {^%e[1;31mRight%e[0m~]$} {#SEND {left}}
After you create these two make sure the ANSI color trigger and Case Sensitive options are enabled... |
|
|
|
Enathe Novice
Joined: 17 Nov 2001 Posts: 34 Location: USA
|
Posted: Fri Apr 08, 2005 4:41 pm |
The left side works fantastic, but the right doesn't work at all.
I tried editing a little, but nothing I tried worked.
Any suggestions? |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Fri Apr 08, 2005 4:46 pm |
Ahh crud, sorry about that... I left in the caret (^) for the right side...
Remove it and it should start working
|
|
|
|
Enathe Novice
Joined: 17 Nov 2001 Posts: 34 Location: USA
|
Posted: Fri Apr 08, 2005 4:51 pm |
You are a magician of script my friend.
Thanks for the assistance! |
|
|
|
|
|