|
Clevix Newbie
Joined: 27 Feb 2002 Posts: 9 Location: USA
|
Posted: Tue Jul 22, 2003 4:10 pm
Specifing Type of Trigger when Creating. |
I have an atconnect alias that populates triggers into a subwindow. When the alias runs, the triggers are created but they are the wrong type. They are created as Expression not Pattern. Manually changing this each time I log in defeats the purpose.... Is there a means to inject the 'Type' as Pattern?
For ease, here is the atconnect:
#WIN tell
:tell:#TR (*) (#SUB (%time(hh:nn:ss)%trigger))
Props to Krohnu for assistance in this venture. |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Tue Jul 22, 2003 4:22 pm |
quote:
Trigger Command Options
..
Type Category for detailed descriptions see: Trigger Types
exp expression trigger (expression is tested whenever a variable is changed)
So try perhaps:
#WIN tell
:tell:#TR (*) (#SUB (%time(hh:nn:ss)%trigger)) {exp} |
|
|
|
Clevix Newbie
Joined: 27 Feb 2002 Posts: 9 Location: USA
|
Posted: Tue Jul 22, 2003 4:32 pm |
Right thought, wrong direction I think.
Bad news - it passes everything, '#SUB' included to the sub-window.
Good News - it does so without requiring me to change the nature of the trigger following login. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Jul 22, 2003 7:37 pm |
If you want the triggers to be Pattern type, rather than Expression type, use {} around the pattern instead of () around the expression.
#WIN tell
:tell:#TR {*} {#SUB (%time(hh:nn:ss)%trigger)} |
|
|
|
Clevix Newbie
Joined: 27 Feb 2002 Posts: 9 Location: USA
|
Posted: Tue Jul 22, 2003 8:37 pm |
Nice! Actually just need {} around the first section (the pattern)... final alias looked like this:
#WIN tell
:tell:#TR {*} (#SUB (%time(hh:nn:ss)") ("%trigger))
Thanks for your help. |
|
|
|
|
|