|
porsche Beginner
Joined: 23 Jul 2002 Posts: 22 Location: United Kingdom
|
Posted: Wed Jul 24, 2002 11:24 am
Yellow highlights in triggers |
Ho hum
Looking at a #TEMP trigger inside a long alias, the patterns (%d) or (%1) or whatever I use are highlighted with a yellow background and red text. No errors are shown but the trigger does not work. Can anyone clarify what the highlights signify.
tia
/Porsche |
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Wed Jul 24, 2002 11:50 am |
The highlights just show that it's a trigger pattern within the main body of the code. As for why it's not working for you, I can't tell without more information.
- Charbal |
|
|
|
porsche Beginner
Joined: 23 Jul 2002 Posts: 22 Location: United Kingdom
|
Posted: Wed Jul 24, 2002 12:23 pm |
Thanks
The trigger is
#temp {On the paper is written: 'l:(%d), p:(%d)'} {login %1;password %2}
Which needs to trigger on patterns like:
On the paper is written: 'l:3498, p:58240525'
Its incredibly simple but I've tried various combinations. It works if I type it manually, but as part of the alias it triggers but the 2 variables are blank.
I was asking about the yellow highlights because if I don't put the %d in brackets it's in magenta, if I put it in brackets then its red with yellow highlight.
thanks again
/Porsche |
|
|
|
Humpton Apprentice
Joined: 10 Oct 2000 Posts: 158 Location: Chicago, IL
|
Posted: Wed Jul 24, 2002 1:57 pm |
It may have something to do with the :s. This is the focus character be default. In your trigger add a ~ before it.
#temp {On the paper is written~: 'l~:(%d), p~:(%d)'} {login %1;password %2}
Stay JOLLY!
H
___
Humpton lives like he types.... fast, and full of mistakes!
Core 2651: For those who prefer the future to the past. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Wed Jul 24, 2002 3:18 pm |
The problem is that it is using the %1 and %2 from the alias instead of just sending it as actual text for the trigger to be created. Try doing this instead:
#TEMP {On the paper is written: 'l:(%d), p:(%d)'} {login %%1;password %%2}
Kjata |
|
|
|
porsche Beginner
Joined: 23 Jul 2002 Posts: 22 Location: United Kingdom
|
Posted: Wed Jul 24, 2002 3:45 pm |
Worked a treat Kjata!
Thank you
/Porsche |
|
|
|
|
|