Quote:
then there should be a cmd like 'IsLabel, SomeLabel'
(setting errorlevel or outputvar)
so that if the label doesn't exist then script doesn't give an error and quit.
It's normal for an non-existent dynamic label to generate a runtime error. If there are some matches for which the user doesn't want a label, they should handle them beforehand, leaving only the valid labels for use with Gosub. In any case, the Gosub approach is of limited usefulness because it only works when the wildcard isn't in use.
Quote:
btw wudn't this be better (both readable and intuitive)
btw=by the way,otoh=on the other hand
Yes it seems better, thanks.
Quote:
i think instead of the new cmd, the second usage will be better. no use splitting it into 2 cmds when input is quite sufficient.
Yeah... I think I see a problem now: I was hoping for auto-replace behavior that is in effect more globally. In other words, just the mere fact that the script is running should globally change typing behavior. Although this is easier to learn and maintain for the script writer, I wonder if enough people would use it to make it worthwhile.
Another dimension of ease of use might be to allow predefined hotstrings:
::btw::Send, {bs 3}by the way
It's so much easier to script them that way. But of course you give up some flexibility.