Posts: 1,769
Threads: 410
Joined: Feb 2003
I have my TS Menu doing capitalization for me for stuff like days of the week. However, on the off chance I actually put in the capital letter, I'd rather it not flicker back and retype it.
Can you put in a 3rd option along with the "Beginning" and "Current Line" to be "Current Till End" or something like that so I can segregate the ones that I don't want to correct if I happen to capitalize correctly?
Posts: 12,051
Threads: 140
Joined: Dec 2002
example
Autotext
Autotext5
Trigger
$t //FF_Autotext5
/b/i/c/p3
January :"January"
July :"July"
Function
FF_Autotext5 (make it a filter-function in Properties / Function)
;/
function# iid FILTER&f
str userText itemText
TriggerInfoAutotext userText 0 0 itemText
;out userText
;out itemText
if(userText!=itemText) ret iid
ret -2
;ret iid ;; run the autotext list item.
;ret 0 ;; don't run any items.
;ret -2 ;; don't run this item. Matching items of other autotext lists can run.
Posts: 1,769
Threads: 410
Joined: Feb 2003
Thanks.
just need to verify that I now need to change all my trigger items to be capitalized because they wont fire unless I change the capitalization. is that correct?
Autotext
Autotext-Test
Trigger
$t //FF_Autotext
/b/i/c/p3
aint :"isn't"
arent :"aren't"
Brd :"BRD"
cant :"can't"
char :"character"
chars :"characters"
co :"count(*)"
Posts: 12,051
Threads: 140
Joined: Dec 2002
Yes. Or can change something in the filter function.
;if(userText!=itemText) ret iid
if(isupper(userText[0])) ret iid
Some more work if need to support Unicode.
Posts: 1,769
Threads: 410
Joined: Feb 2003
na...this works fine.
thanks.