Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TS Menu Request
#1
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?
An old blog on QM coding and automation.

The Macro Hook
#2
example
Autotext Autotext5
Trigger $t //FF_Autotext5     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c/p3
January :"January"
July :"July"
Function FF_Autotext5 (make it a filter-function in Properties / Function)
Code:
Copy      Help
;/
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.
#3
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     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c/p3
aint :"isn't"
arent :"aren't"
Brd :"BRD"
cant :"can't"
char :"character"
chars :"characters"
co :"count(*)"
An old blog on QM coding and automation.

The Macro Hook
#4
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.
#5
na...this works fine.

thanks.
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)