|
Toshiki Beginner
Joined: 20 Nov 2004 Posts: 14
|
Posted: Mon Dec 11, 2006 8:52 am
Need help with simple trigger |
| Power|| Boom|
How do i make this recognize just "Power" and "Boom" and none of the spaces?
|Power ||Boom |
It also appears as that on the bottom of the screen. the other is at the top |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Dec 11, 2006 9:48 am |
How do you mean? You want a trigger that picks up the words between the lines but not the spaces?
EDIT: Okay, I read your other thread. It's not too hard, you just use wildcards (look them up in the help for #trigger).
#trig {~|(%w) ~|~|(%w) ~|} {#echo %1 %2} |
|
|
|
Toshiki Beginner
Joined: 20 Nov 2004 Posts: 14
|
Posted: Mon Dec 11, 2006 5:18 pm |
I tried that, but when iuse (%w) it adds the spaces in there. Sometimes those words are #'s as well, so i tried (%1) and that adds the spaces as well. The Variable is saved as "Power " or something along those lines. For some reason my origional post didn't put the spaces behind it. Sorry
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Dec 11, 2006 5:28 pm |
Well, if it's important that you don't have the spaces, use %trim(%1). It really shouldn't be including them, though, that's bizarre.
|
|
|
|
Toshiki Beginner
Joined: 20 Nov 2004 Posts: 14
|
Posted: Mon Dec 11, 2006 6:05 pm |
Thanks man. I kinda tinkered with it for a bit and figured out that ~|(%a)*~| works
|
|
|
|
|
|